I created a NodeTemplate and I would like to know if there is a way to resize my node.
When I try to resize my node, the issu on this picture append… I am wondering if there is a way to resize my node content when I try to resize my node? :$
<go:NodePanel Sizing="Auto">
<Path x:Name="Shape" go:NodePanel.Figure="RoundedRectangle" Fill="WhiteSmoke" Stroke="Black" />
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<TextBlock HorizontalAlignment="Center"
Text="{Binding Path=Data.Title}" FontWeight="Bold" TextWrapping="Wrap" go:Part.TextEditable="True"
Foreground="{Binding Path=Data.Color, Converter={StaticResource theStringBrushConverter}}"/>
</Grid>
<grid:DataGrid Grid.Row="1" AutoGenerateColumns="False" CanUserResizeColumns="False"
Background="White" HorizontalAlignment="Stretch"
ItemsSource="{Binding Path=Data.Items}" HeadersVisibility="None" BorderBrush="White">
<grid:DataGrid.Columns>
<grid:DataGridTemplateColumn>
<grid:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<go:NodePanel>
<Path go:NodePanel.Figure="{Binding Path=Figure}"
Width="10" Height="10"
Fill="{Binding Path=Color}"
Stroke="Black" StrokeThickness="1"/>
</go:NodePanel>
</DataTemplate>
</grid:DataGridTemplateColumn.CellTemplate>
</grid:DataGridTemplateColumn>
<grid:DataGridTextColumn Binding="{Binding Path=Name}"/>
<grid:DataGridTextColumn Binding="{Binding Path=Value}"/>
</grid:DataGrid.Columns>
</grid:DataGrid>
</Grid>
<ToolTipService.ToolTip>
<TextBlock Text="{Binding Path=Data.Key}"
Visibility="{Binding Path=Data.Key.Length,
Converter={StaticResource theCountVisibilityConverter}}" />
</ToolTipService.ToolTip>
</go:NodePanel>
</go:SpotPanel>
I tried to change go:Part.ResizeElementName=“Shape” using <go:NodePanel x:Name=“Shape” Sizing=“Auto”> or but It doesn’t work…
Is it a way to resize my node and its content? :$
I found your resizingTool but I don’t what I could use to do that…
Thx in advance :)