本文整理汇总了C#中System.Windows.Controls.TreeView.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# TreeView.GetValue方法的具体用法?C# TreeView.GetValue怎么用?C# TreeView.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.TreeView
的用法示例。
在下文中一共展示了TreeView.GetValue方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: GetStartItem
private static TreeViewItem GetStartItem(TreeView element)
{
return (TreeViewItem)element.GetValue(StartItemProperty);
}
示例3: GetSelectedItems
public static IList GetSelectedItems(TreeView element)
{
return (IList)element.GetValue(SelectedItemsProperty);
}
示例4: GetCommandParameter
public static object GetCommandParameter(TreeView treeView)
{
return treeView.GetValue(CommandParameterProperty);
}
示例5: GetCommand
public static ICommand GetCommand(TreeView treeView)
{
return treeView.GetValue(CommandProperty) as ICommand;
}
示例6: GetCurrentItem
public static object GetCurrentItem (TreeView treeView)
{
return treeView.GetValue (CurrentItemProperty);
}
示例7: GetSelectedItemSync
public static bool GetSelectedItemSync (TreeView d)
{
return (bool)d.GetValue(SelectedItemSyncProperty);
}
示例8: GetSelectedItem
public static object GetSelectedItem (TreeView d)
{
return (object)d.GetValue(SelectedItemProperty);
}
示例9: GetSelectedItem
public static object GetSelectedItem(TreeView element)
{
return element.GetValue(SelectedItemProperty);
}
示例10: GetCurrentTreeViewItem
public static TreeViewItem GetCurrentTreeViewItem(TreeView treeView)
{
return (TreeViewItem)treeView.GetValue(CurrentTreeViewItemProperty);
}
示例11: GetSelectionChangedListeners
static List<Action<object>> GetSelectionChangedListeners(TreeView obj)
{
return (List<Action<object>>)obj.GetValue(FinishChangedListenersProperty);
}
示例12: GetSelectedItem
public static object GetSelectedItem(TreeView treeView)
{
return treeView.GetValue(SelectedItemProperty);
}