Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I tried to make a treeview node initially selected by binding the checkbox IsChecked-property to a property in the node. Tested with the UraniumUI sample solution but ended up with empty space inside the tree for the selected node and the actual node is hidden.
modified the treeview.xaml with
<material:CheckBox Text="{Binding Name}" Margin="10" IsChecked="{Binding IsSelected}" >
and in TreeViewPageViewModel.cs modified one sample item
new MyItem("A.1") { IsSelected = true },
and added observable property to the MyItem-class
public virtual bool IsSelected { get => isSelected; set => SetProperty(ref isSelected, value); }
ended up with this. As you can seen the item A.1 is hidden (the space for it is still there)
Beta Was this translation helpful? Give feedback.
All reactions