当前位置: 首页>>代码示例>>C#>>正文


C# Selector.SetValue方法代码示例

本文整理汇总了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);
        }
开发者ID:resnikb,项目名称:GitWorkflows,代码行数:7,代码来源:SelectionChanged.cs

示例2: SetCommand

        public static void SetCommand(Selector selector, ICommand command)
        {
            if (selector == null)
                throw new ArgumentNullException("selector");

            selector.SetValue(CommandProperty, command);
        }
开发者ID:resnikb,项目名称:GitWorkflows,代码行数:7,代码来源:SelectionChanged.cs

示例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;
        }
开发者ID:JohnDMathis,项目名称:Pippin,代码行数:11,代码来源:GenericSelect.cs

示例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;
        }
开发者ID:resnikb,项目名称:GitWorkflows,代码行数:11,代码来源:SelectionChanged.cs

示例5: SetHighlightedItem

 public static void SetHighlightedItem(Selector element, object value)
 {
     element.SetValue(HighlightedItemProperty, value);
 }
开发者ID:JohanLarsson,项目名称:SelectedItemsListener,代码行数:4,代码来源:ComboBoxExt.cs

示例6: SetSelectedItemsSync

 private static void SetSelectedItemsSync (Selector d, SelectedItemsSync value)
 {
     d.SetValue(SelectedItemsSyncProperty, value);
 }
开发者ID:binki,项目名称:Alba.Framework,代码行数:4,代码来源:SelectorProps.g.cs

示例7: SetSelectedValueBinding_RestoreAfterInitialization

 static void SetSelectedValueBinding_RestoreAfterInitialization(Selector element, BindingBase value)
 {
     element.SetValue(SelectedValueBinding_RestoreAfterInitializationProperty, value);
 }
开发者ID:squaredinfinity,项目名称:Foundation,代码行数:4,代码来源:Selector.ItemsSourceWithPreserveSelection.cs

示例8: SetCommand

 public static void SetCommand(Selector selector, ICommand value)
 {
     selector.SetValue(CommandProperty, value);
 }
开发者ID:jesperll,项目名称:DMI-Byvejr,代码行数:4,代码来源:SelectorExtension.cs

示例9: SetIsEnabled

 public static void SetIsEnabled(Selector target, bool value)
 {
     target.SetValue(IsEnabledProperty, value);
 }
开发者ID:gatepoet,项目名称:Deicon.TilesDavis,代码行数:4,代码来源:MultiSelect.cs

示例10: SetAutoScrollIntoView

 public static void SetAutoScrollIntoView(Selector selector, bool value)
 {
     selector.SetValue(AutoScrollIntoViewProperty, value);
 }
开发者ID:Wdovin,项目名称:vc-community,代码行数:4,代码来源:DataGridScrollBehavior.cs

示例11: SetSelectedItemsBindable

 public static void SetSelectedItemsBindable(Selector element, IList value)
 {
     element.SetValue(SelectedItemsBindableProperty, value);
 }
开发者ID:JohanLarsson,项目名称:SelectedItemsListener,代码行数:4,代码来源:SelectorExt.cs

示例12: SetEnableIndexing

 public static void SetEnableIndexing(Selector selector, IList value)
 {
     selector.SetValue(EnableIndexingProperty, value);
 }
开发者ID:Mrding,项目名称:Ribbon,代码行数:4,代码来源:ItemsElementBehavior.cs

示例13: SelectorDefaultSelectedBeavaior

 public SelectorDefaultSelectedBeavaior(Selector selector, int value)
 {
     _selector = selector;
     defaultValue = value;
     _itemsSourceDescriptor = DependencyPropertyDescriptor.FromProperty(ItemsControl.ItemsSourceProperty, selector.GetType());
     RegisterEvent();
     _selector.SetValue(DefaultSelectedIndexProperty, value);
 }
开发者ID:Mrding,项目名称:Ribbon,代码行数:8,代码来源:ItemsElementBehavior.cs

示例14: SetCommandParameter

 public static void SetCommandParameter(Selector selector, object parameter)
 {
     selector.SetValue(CommandParameterProperty, parameter);
 }
开发者ID:erwilleke,项目名称:ocu.angellight.code,代码行数:4,代码来源:SelectionChanged.cs

示例15: SetBinding

 public static void SetBinding(Selector element, IAttachedSelector value)
 {
     element.SetValue(BindingProperty, value);
 }
开发者ID:Finickyflame,项目名称:Dynamic.Trader,代码行数:4,代码来源:SelectorHelper.cs


注:本文中的System.Windows.Controls.Primitives.Selector.SetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。