Hi,
What is the right way to hide link or node?
I was able to hide the link by adding binding to the Visibility property of the LinkPanel in the link’s DataTemplate but I think it will be better to change the Visibility of the Link itself and not its DataTemplate. The same for Node.
I’ve try to create the following styles but it did not work for me:
<Style TargetType="{x:Type go:Link}">
<Setter Property="Visibility" Value="{Binding Data.IsVisible, Converter={uifx:DefaultConverters uifx:BoolToVisibilityConverter}}" />
</Style>
<Style TargetType="{x:Type go:Node}">
<Setter Property="Visibility" Value="{Binding Data.IsVisible, Converter={uifx:DefaultConverters uifx:BoolToVisibilityConverter}}" />
</Style>
Thank you,
Ido.