Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1300
Expansion indicator is not appearing when custom style is applied for the node
posted

Hi,

When I apply custom style for the node, the expansion indicator is not shown. Can you please let me know how to enable it on a custom style node ?

Part of my sample code that I used:

xnn.GlobalNodeLayouts.Add
(new NetworkNodeNodeLayout
{
TargetTypeName = "NodeModel",
DisplayMemberPath = "Label",
ToolTipMemberPath = "ToolTip",
ConnectionsMemberPath = "Connections",
ConnectionTargetMemberPath = "Target",
NodeStyle = Resources["CustomNodeStyle"] as Style,
ExpansionIndicatorVisibility = Visibility.Visible
});

xnn.ExpansionIndicatorVisibility = Visibility.Visible;

Xaml part:

<ig:XamNetworkNode x:Name="xnn"
SelectionType="Extended"
ItemsSource="{Binding Nodes, Source={StaticResource GraphData}}">
</ig:XamNetworkNode>

If I comment the statement that sets "NodeStyle" property then expansion indicators are visible.

Thanks & Regards,

Prasad