本文整理匯總了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;
}