本文整理汇总了C#中System.Windows.Controls.Primitives.Selector.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# Selector.SetValue方法的具体用法?C# Selector.SetValue怎么用?C# Selector.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.Primitives.Selector
的用法示例。
在下文中一共展示了Selector.SetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetCommandParameter
public static void SetCommandParameter(Selector selector, object parameter)
{
if (selector == null)
throw new ArgumentNullException("selector");
selector.SetValue(CommandParameterProperty, parameter);
}
示例2: SetCommand
public static void SetCommand(Selector selector, ICommand command)
{
if (selector == null)
throw new ArgumentNullException("selector");
selector.SetValue(CommandProperty, command);
}
示例3: 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;
}
示例4: 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;
}
示例5: SetHighlightedItem
public static void SetHighlightedItem(Selector element, object value)
{
element.SetValue(HighlightedItemProperty, value);
}
示例6: SetSelectedItemsSync
private static void SetSelectedItemsSync (Selector d, SelectedItemsSync value)
{
d.SetValue(SelectedItemsSyncProperty, value);
}
示例7: SetSelectedValueBinding_RestoreAfterInitialization
static void SetSelectedValueBinding_RestoreAfterInitialization(Selector element, BindingBase value)
{
element.SetValue(SelectedValueBinding_RestoreAfterInitializationProperty, value);
}
示例8: SetCommand
public static void SetCommand(Selector selector, ICommand value)
{
selector.SetValue(CommandProperty, value);
}
示例9: SetIsEnabled
public static void SetIsEnabled(Selector target, bool value)
{
target.SetValue(IsEnabledProperty, value);
}
示例10: SetAutoScrollIntoView
public static void SetAutoScrollIntoView(Selector selector, bool value)
{
selector.SetValue(AutoScrollIntoViewProperty, value);
}
示例11: SetSelectedItemsBindable
public static void SetSelectedItemsBindable(Selector element, IList value)
{
element.SetValue(SelectedItemsBindableProperty, value);
}
示例12: SetEnableIndexing
public static void SetEnableIndexing(Selector selector, IList value)
{
selector.SetValue(EnableIndexingProperty, value);
}
示例13: SelectorDefaultSelectedBeavaior
public SelectorDefaultSelectedBeavaior(Selector selector, int value)
{
_selector = selector;
defaultValue = value;
_itemsSourceDescriptor = DependencyPropertyDescriptor.FromProperty(ItemsControl.ItemsSourceProperty, selector.GetType());
RegisterEvent();
_selector.SetValue(DefaultSelectedIndexProperty, value);
}
示例14: SetCommandParameter
public static void SetCommandParameter(Selector selector, object parameter)
{
selector.SetValue(CommandParameterProperty, parameter);
}
示例15: SetBinding
public static void SetBinding(Selector element, IAttachedSelector value)
{
element.SetValue(BindingProperty, value);
}