本文整理汇总了C#中System.Windows.Controls.TreeView.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# TreeView.SetValue方法的具体用法?C# TreeView.SetValue怎么用?C# TreeView.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.TreeView
的用法示例。
在下文中一共展示了TreeView.SetValue方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetOrCreateBehavior
private static TreeViewSelectionChangedCommandBehavior GetOrCreateBehavior(TreeView treeView)
{
TreeViewSelectionChangedCommandBehavior behavior =
treeView.GetValue(SelectCommandBehaviorProperty) as TreeViewSelectionChangedCommandBehavior;
if (behavior == null)
{
behavior = new TreeViewSelectionChangedCommandBehavior(treeView);
treeView.SetValue(SelectCommandBehaviorProperty, behavior);
}
return behavior;
}
示例2: SetStartItem
private static void SetStartItem(TreeView element, TreeViewItem value)
{
element.SetValue(StartItemProperty, value);
}
示例3: SetSelectedItems
public static void SetSelectedItems(TreeView element, IList value)
{
element.SetValue(SelectedItemsProperty, value);
}
示例4: SetCommandParameter
public static void SetCommandParameter(TreeView treeView, object parameter)
{
treeView.SetValue(CommandParameterProperty, parameter);
}
示例5: SetCommand
public static void SetCommand(TreeView treeView, ICommand command)
{
treeView.SetValue(CommandProperty, command);
}
示例6: SetCurrentItem
public static void SetCurrentItem (TreeView treeView, object value)
{
treeView.SetValue (CurrentItemProperty, value);
}
示例7: SetSelectedItemSync
public static void SetSelectedItemSync (TreeView d, bool value)
{
d.SetValue(SelectedItemSyncProperty, value);
}
示例8: SetSelectedItem
public static void SetSelectedItem (TreeView d, object value)
{
d.SetValue(SelectedItemProperty, value);
}
示例9: SetSelectedItem
public static void SetSelectedItem(TreeView element, object value)
{
element.SetValue(SelectedItemProperty, value);
}
示例10: SetCurrentTreeViewItem
public static void SetCurrentTreeViewItem(TreeView treeView, TreeViewItem value)
{
treeView.SetValue(CurrentTreeViewItemProperty, value);
}