本文整理汇总了C#中System.Windows.Controls.Primitives.Selector.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# Selector.GetValue方法的具体用法?C# Selector.GetValue怎么用?C# Selector.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.Primitives.Selector
的用法示例。
在下文中一共展示了Selector.GetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetCommand
public static ICommand GetCommand(Selector selector)
{
if (selector == null)
throw new ArgumentNullException("selector");
return selector.GetValue(CommandProperty) as ICommand;
}
示例2: GetCommandParameter
public static object GetCommandParameter(Selector selector)
{
if (selector == null)
throw new ArgumentNullException("selector");
return selector.GetValue(CommandParameterProperty);
}
示例3: GetOrCreateBehavior
private static SelectorSelectionChangedCommandBehavior GetOrCreateBehavior(Selector selector)
{
var behavior = selector.GetValue(SelectionChangedCommandBehaviorProperty) as SelectorSelectionChangedCommandBehavior;
if (behavior == null)
{
behavior = new SelectorSelectionChangedCommandBehavior(selector);
selector.SetValue(SelectionChangedCommandBehaviorProperty, behavior);
}
return behavior;
}
示例4: GetOrCreateBehavior
private static GenericSelectCommandBehavior GetOrCreateBehavior(Selector selector)
{
var behavior = selector.GetValue(SelectCommandBehaviorProperty) as GenericSelectCommandBehavior;
if (behavior == null)
{
behavior = new GenericSelectCommandBehavior(selector);
selector.SetValue(SelectCommandBehaviorProperty, behavior);
}
return behavior;
}
示例5: GetSelectedItemsSync
private static SelectedItemsSync GetSelectedItemsSync (Selector d)
{
return (SelectedItemsSync)d.GetValue(SelectedItemsSyncProperty);
}
示例6: GetSelectedValueBinding_RestoreAfterInitialization
static BindingBase GetSelectedValueBinding_RestoreAfterInitialization(Selector element)
{
return (BindingBase)element.GetValue(SelectedValueBinding_RestoreAfterInitializationProperty);
}
示例7: GetCommand
public static ICommand GetCommand(Selector selector)
{
return (ICommand)selector.GetValue(CommandProperty);
}
示例8: GetSelectionMonitor
public static ISelectionMonitor GetSelectionMonitor(Selector element)
{
return (ISelectionMonitor)element.GetValue(SelectionMonitorProperty);
}
示例9: GetRowAnimationSetter
public static ListboxRowAnimationSetter GetRowAnimationSetter(Selector element)
{
return (ListboxRowAnimationSetter)element.GetValue(RowAnimationSetterProperty);
}
示例10: GetSelectedItemsBindable
public static IList GetSelectedItemsBindable(Selector element)
{
return (IList)element.GetValue(SelectedItemsBindableProperty);
}
示例11: GetAutoAcrollIntoView
public static bool GetAutoAcrollIntoView(Selector selector)
{
return (bool)selector.GetValue(AutoScrollIntoViewProperty);
}
示例12: GetEnableIndexing
public static IList GetEnableIndexing(Selector selector)
{
return (IList)selector.GetValue(EnableIndexingProperty);
}
示例13: GetCommandParameter
public static object GetCommandParameter(Selector selector)
{
return selector.GetValue(CommandParameterProperty);
}
示例14: GetBinding
public static IAttachedSelector GetBinding(Selector element)
{
return (IAttachedSelector)element.GetValue(BindingProperty);
}
示例15: GetIsEnabled
public static bool GetIsEnabled(Selector target)
{
return (bool)target.GetValue(IsEnabledProperty);
}