Hi.
When i add new node to the diagram, I’m using this DataTemplateDictionary:
<go:DataTemplateDictionary x:Key="PalleteNodeTemplateDictionary"> <DataTemplate x:Key="Standard"> <go:SpotPanel Name="spotpanel" go:Node.Location="{Binding Path=Data.Location, Mode=TwoWay}" Style="{StaticResource SpotPanelStyle}" > <go:NodePanel go:SpotPanel.Main="True" Sizing="Auto"> <Grid MaxWidth="200" Background="Transparent"> <Grid.RowDefinitions > <RowDefinition Height="*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid Grid.Row="0" Background="Transparent"> <Image Source="{Binding Path=Data.Picture, Converter={StaticResource theImageSourceConvertor}}" Stretch="Fill" MaxHeight="80" MaxWidth="80"/> </Grid> <Grid Grid.Row="1" Background="Transparent"> <Label Content="{Binding Path=Data.Caption}" HorizontalAlignment="Center" Foreground="White"/> </Grid> </Grid> </go:NodePanel> <Ellipse go:Node.FromSpot="MiddleBottom" go:Node.LinkableTo="False" go:Node.PortId="0" go:SpotPanel.Alignment="MiddleBottom" go:SpotPanel.Spot="MiddleBottom" Stroke="{Binding Path=Node.Tag, Converter={StaticResource theBooleanBrushConverter}}" Style="{StaticResource EllipseStyle}" /> <Ellipse go:Node.LinkableFrom="False" go:Node.PortId="1" go:Node.ToSpot="MiddleTop" go:SpotPanel.Alignment="MiddleTop" go:SpotPanel.Spot="MiddleTop" Stroke="{Binding Path=Node.Tag, Converter={StaticResource theBooleanBrushConverter}}" Style="{StaticResource EllipseStyle}" /> <Ellipse go:Node.FromSpot="MiddleLeft" go:Node.PortId="2" go:Node.ToSpot="MiddleLeft" go:SpotPanel.Alignment="MiddleLeft" go:SpotPanel.Spot="MiddleLeft" Stroke="{Binding Path=Node.Tag, Converter={StaticResource theBooleanBrushConverter}}" Style="{StaticResource EllipseStyle}" /> <Ellipse go:Node.FromSpot="MiddleRight" go:Node.PortId="3" go:Node.ToSpot="MiddleRight" go:SpotPanel.Alignment="MiddleRight" go:SpotPanel.Spot="MiddleRight" Stroke="{Binding Path=Node.Tag, Converter={StaticResource theBooleanBrushConverter}}" Style="{StaticResource EllipseStyle}" /> </go:SpotPanel> </DataTemplate> </go:DataTemplateDictionary>
I want to add five buttons on the left side of each node, that will appear when i hover on the node, and will disapear when i exit the node border.
But i don't know how to add the buttons to the DataTemplateDictionary in a way that they will physically
be out of thnode borders (out of te spotpanel), maybe i don't need to put them inside the DataTemplateDictionary.so where??