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


C# Selector.GetValue方法代码示例

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

示例2: GetCommandParameter

        public static object GetCommandParameter(Selector selector)
        {
            if (selector == null)
                throw new ArgumentNullException("selector");

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

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

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

示例5: GetSelectedItemsSync

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

示例6: GetSelectedValueBinding_RestoreAfterInitialization

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

示例7: GetCommand

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

示例8: GetSelectionMonitor

 public static ISelectionMonitor GetSelectionMonitor(Selector element)
 {
     return (ISelectionMonitor)element.GetValue(SelectionMonitorProperty);
 }
开发者ID:ItsJustSean,项目名称:TailBlazer,代码行数:4,代码来源:ListBoxHelper.cs

示例9: GetRowAnimationSetter

 public static ListboxRowAnimationSetter GetRowAnimationSetter(Selector element)
 {
     return (ListboxRowAnimationSetter)element.GetValue(RowAnimationSetterProperty);
 }
开发者ID:ItsJustSean,项目名称:TailBlazer,代码行数:4,代码来源:ListBoxHelper.cs

示例10: GetSelectedItemsBindable

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

示例11: GetAutoAcrollIntoView

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

示例12: GetEnableIndexing

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

示例13: GetCommandParameter

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

示例14: GetBinding

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

示例15: GetIsEnabled

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


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