本文整理汇总了C#中Windows.UI.Xaml.Controls.ListViewBase.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# ListViewBase.GetValue方法的具体用法?C# ListViewBase.GetValue怎么用?C# ListViewBase.GetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Windows.UI.Xaml.Controls.ListViewBase
的用法示例。
在下文中一共展示了ListViewBase.GetValue方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetOrCreateBehavior
private static SelectedItemsBehavior GetOrCreateBehavior(ListViewBase target, IList list)
{
var behavior = target.GetValue(SelectedItemsBehaviorProperty) as SelectedItemsBehavior;
if (behavior == null)
{
behavior = new SelectedItemsBehavior(target, list);
target.SetValue(SelectedItemsBehaviorProperty, behavior);
}
else
{
behavior.SetData(list);
}
return behavior;
}
示例2: GetMethodContext
public static object GetMethodContext(ListViewBase element)
{
return element.GetValue(MethodContextProperty);
}
示例3: GetItemClickedCommand
public static ICommand GetItemClickedCommand(ListViewBase lvb)
{
return (ICommand)lvb.GetValue(ItemClickedCommandProperty);
}
示例4: GetCommand
public static ICommand GetCommand(ListViewBase obj)
{
return (ICommand)obj.GetValue(CommandProperty);
}
示例5: GetItems
public static IList GetItems(ListViewBase listBox)
{
return listBox.GetValue(ItemsProperty) as IList;
}