Hi Walter,
I got a problem with my group-template: I want to connect the links with the ports of a group-node. In my mouse-enter method I switch my ports to be visible but I can only see one of them (the one right in the middle of the group-node). This is my Group-template:
<DataTemplate x:Key="GroupTemplate1" > <go:SpotPanel Style="{StaticResource SpotPanelStyle}" go:Part.SelectionAdorned="True" go:Node.LocationElementName="myGroupPanel" MouseEnter="Node_MouseEnter" MouseLeave="Node_MouseLeave" > <go:NodePanel Sizing="Auto" go:SpotPanel.Main="True"> <Path x:Name="Shape" Style="{StaticResource NodeShapeStyle}" go:NodePanel.Figure="Rectangle" /> <StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Left"> <TextBlock Text="Group" FontWeight="Bold" /> </StackPanel> <go:GroupPanel x:Name="myGroupPanel" Padding="5" /> </StackPanel> <Ellipse Style="{StaticResource EllipseStyle}" Stroke="{Binding Path=Node.Tag, Converter={StaticResource theBooleanBrushConverter}}" go:Node.PortId="0" go:Node.LinkableTo="True" go:Node.FromSpot="MiddleBottom" go:SpotPanel.Spot="MiddleBottom" go:SpotPanel.Alignment="MiddleBottom" /> <Ellipse Style="{StaticResource EllipseStyle}" Stroke="{Binding Path=Node.Tag, Converter={StaticResource theBooleanBrushConverter}}" go:Node.PortId="1" go:Node.LinkableFrom="True" go:Node.ToSpot="MiddleTop" go:SpotPanel.Spot="MiddleTop" go:SpotPanel.Alignment="MiddleTop" /> <Ellipse Style="{StaticResource EllipseStyle}" Stroke="{Binding Path=Node.Tag, Converter={StaticResource theBooleanBrushConverter}}" go:Node.PortId="2" go:Node.FromSpot="MiddleLeft" go:Node.ToSpot="MiddleLeft" go:SpotPanel.Spot="MiddleLeft" go:SpotPanel.Alignment="MiddleLeft" /> <Ellipse Style="{StaticResource EllipseStyle}" Stroke="{Binding Path=Node.Tag, Converter={StaticResource theBooleanBrushConverter}}" go:Node.PortId="3" go:Node.FromSpot="MiddleRight" go:Node.ToSpot="MiddleRight" go:SpotPanel.Spot="MiddleRight" go:SpotPanel.Alignment="MiddleRight" /> </go:NodePanel> </go:SpotPanel> </DataTemplate>
Can You see whats wrong with this? I copied nearly the whole template from one of the samples.
regards
Michael