Dear Support,
I am using Context menus with a command delegate on nodes and links but for some reason after closing the diagram these nodes and links stay in memory. For some reason I am not able to remove the Mouseclick event delegates that this command delegate creates. Any sugestions on how I should deal with this?
I tried to paste the xaml for the link template but after I reply I also do not see the xaml. How do I upload this so that you can see how the template is created?
Frank
xx
xx <go:LinkPanel x:Name=“CableTemplateLinkPanel” go:Part.SelectionElementName=“CablePath” go:Part.SelectionAdorned=“True” go:LinkPanel.IsLinkShape=“True” xx go:Part.SelectionAdornmentTemplate="{StaticResource BoxNodeAdornmentTemplate}">
xx <go:LinkShape x:Name=“CablePath” Stroke="{Binding Path=Data.LinkColor, Mode=TwoWay}" StrokeDashArray="{Binding Path=Data.NewInstall,Mode=TwoWay,Converter={StaticResource xx NewInstallConverter}}" StrokeThickness=“2” />
xx
xx go:Link.Route
xx <go:Route Routing=“Orthogonal” Curve=“None” go:Part.Selectable=“True” RelinkableTo=“True” RelinkableFrom=“True” />
xx </go:Link.Route>
xx
xx
xx
xx input:ContextMenuService.ContextMenu
xx input:ContextMenu
xx <input:MenuItem x:Name=“ContextMenuLocateCable” CommandParameter="{Binding RelativeSource={RelativeSource Self}}" Command="{Binding LocateCableCommand,Source= xx {StaticResource OpBouwNetstrucViewModelViewSource}}" Header=“Locate” Visibility="{Binding Path=ShowGisLocation,Source={StaticResource xx OpBouwNetstrucViewModelViewSource}}" />
xx </input:ContextMenu>
xx </input:ContextMenuService.ContextMenu>
xx </go:LinkPanel>
xx