Hi,
This is treeview code:
And this is tree node modle code:
In the case of treeview's scrollbar displayed. The scrollbar will be uncontrolled movement when clicked one tree node in the treeview.
And tree node can be selected more than one.
If the scroll bar isn't displayed, the above problems would not have occurred.
This is treeview code:
<telerik:RadTreeView Grid.Row="2" IsRootLinesEnabled="False" IsLineEnabled="True" ItemsSource="{Binding DisplayDataList}" PreviewSelectionChanged="RadTreeView_PreviewSelectionChanged" telerik:StyleManager.Theme="{StaticResource MetroStyle}" FontFamily="{StaticResource font_global}" HorizontalContentAlignment="Stretch"><telerik:RadTreeView.ItemTemplate><HierarchicalDataTemplate ItemsSource="{Binding TreeNodeList}"><TextBlock FontSize="16" Text="{Binding TreeNodeID}" /></HierarchicalDataTemplate></telerik:RadTreeView.ItemTemplate>
</telerik:RadTreeView>And this is tree node modle code:
public class AccountTreeNode { private Object treeNodeObject; public Object TreeNodeObject { get { return treeNodeObject; } set { treeNodeObject = value; } } private Type treeNodeType; public Type TreeNodeType { get { return treeNodeType; } set { treeNodeType = value; } } private ObservableCollection<AccountTreeNode> treeNodeList; public ObservableCollection<AccountTreeNode> TreeNodeList { get { return treeNodeList; } set { treeNodeList = value; Notify("TreeNodeList"); } } }In the case of treeview's scrollbar displayed. The scrollbar will be uncontrolled movement when clicked one tree node in the treeview.
And tree node can be selected more than one.
If the scroll bar isn't displayed, the above problems would not have occurred.