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


C# ComboBox.GetValue方法代码示例

本文整理汇总了C#中System.Windows.Controls.ComboBox.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# ComboBox.GetValue方法的具体用法?C# ComboBox.GetValue怎么用?C# ComboBox.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Controls.ComboBox的用法示例。


在下文中一共展示了ComboBox.GetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetOrCreateBehavior

        private static ComboBoxKeyCommandBehavior GetOrCreateBehavior(ComboBox comboBox)
        {
            var behavior = comboBox.GetValue(ComboBoxKeyCommandBehaviorProperty) as ComboBoxKeyCommandBehavior;
            if (behavior == null)
            {
                behavior = new ComboBoxKeyCommandBehavior(comboBox);
                comboBox.SetValue(ComboBoxKeyCommandBehaviorProperty, behavior);
            }

            return behavior;
        }
开发者ID:JohnDMathis,项目名称:Pippin,代码行数:11,代码来源:ComboBoxKey.cs

示例2: GetIsSnoopPart

		/// <summary>
		/// Indicates whether given ComboBox is a part of the Snoop UI.
		/// If ComboBox is a part of Snoop UI it doesn't take part in
		/// routed events monitoring.
		/// </summary>
		/// <param name="obj"></param>
		/// <returns></returns>
		public static bool GetIsSnoopPart(ComboBox obj)
		{
			return (bool)obj.GetValue(IsSnoopPartProperty);
		}
开发者ID:JonGonard,项目名称:snoopwpf,代码行数:11,代码来源:ComboBoxSettings.cs

示例3: GetSelectedTemplate

 public static DataTemplate GetSelectedTemplate(ComboBox obj)
 {
     return (DataTemplate)obj.GetValue(SelectedTemplateProperty);
 }
开发者ID:MGetmanov,项目名称:Selenite,代码行数:4,代码来源:ComboBoxItemTemplateSelector.cs

示例4: GetDropDownTemplate

 public static DataTemplate GetDropDownTemplate(ComboBox obj)
 {
     return (DataTemplate)obj.GetValue(DropDownTemplateProperty);
 }
开发者ID:MGetmanov,项目名称:Selenite,代码行数:4,代码来源:ComboBoxItemTemplateSelector.cs

示例5: GetOpenDropDownAutomatically

 /// <summary>
 /// Gets the open drop down automatically.
 /// </summary>
 /// <param name="cbo">The combobox.</param>
 /// <returns>should open automatically</returns>
 public static bool GetOpenDropDownAutomatically(ComboBox cbo)
 {
     return (bool)cbo.GetValue(openDropDownAutomaticallyProperty);
 }
开发者ID:kennedykinyanjui,项目名称:Projects,代码行数:9,代码来源:ComboBoxDropdownExtensions.cs

示例6: GetAutoSize

 public static bool GetAutoSize(ComboBox comboBox)
 {
     return (bool) comboBox.GetValue(AutoSizeProperty);
 }
开发者ID:rmunn,项目名称:cog,代码行数:4,代码来源:ComboBoxBehaviors.cs

示例7: GetOrCreateBehavior

        private static ComboBoxSelectChangedCommandBehavior GetOrCreateBehavior(ComboBox cBox)
        {
            var behavior = cBox.GetValue(SelectedChangedCommandBehaviorProperty) as ComboBoxSelectChangedCommandBehavior;
            if (behavior == null)
            {
                behavior = new ComboBoxSelectChangedCommandBehavior(cBox);
                cBox.SetValue(SelectedChangedCommandBehaviorProperty, behavior);
            }

            return behavior;
        }
开发者ID:powerhai,项目名称:LayoutSetupControl,代码行数:11,代码来源:SelectedChanged.cs

示例8: GetCommandParameter

 /// <summary>
 /// Gets command parameter combobox
 /// </summary>
 /// <param name="cBox"></param>
 /// <returns></returns>
 public static object GetCommandParameter(ComboBox cBox)
 {
     if (cBox == null) throw new System.ArgumentNullException("cBox");
     return cBox.GetValue(CommandParameterProperty);
 }
开发者ID:powerhai,项目名称:LayoutSetupControl,代码行数:10,代码来源:SelectedChanged.cs

示例9: GetCommand

 /// <summary>
 /// Gets command to combobox
 /// </summary>
 /// <param name="cBox"></param>
 /// <returns></returns>
 public static ICommand GetCommand(ComboBox cBox)
 {
     if (cBox == null) throw new System.ArgumentNullException("cBox");
     return cBox.GetValue(CommandProperty) as ICommand;
 }
开发者ID:powerhai,项目名称:LayoutSetupControl,代码行数:10,代码来源:SelectedChanged.cs

示例10: GetLabelStyle

 public static Style GetLabelStyle(ComboBox obj)
 {
     return (Style)obj.GetValue(LabelStyleProperty);
 }
开发者ID:pwlodek,项目名称:CodeGallery,代码行数:4,代码来源:WatermarkComboBoxBehavior.cs

示例11: GetLabel

 public static string GetLabel(ComboBox obj)
 {
     return (string)obj.GetValue(LabelProperty);
 }
开发者ID:pwlodek,项目名称:CodeGallery,代码行数:4,代码来源:WatermarkComboBoxBehavior.cs

示例12: GetEnableWatermark

 public static bool GetEnableWatermark(ComboBox obj)
 {
     return (bool)obj.GetValue(EnableWatermarkProperty);
 }
开发者ID:pwlodek,项目名称:CodeGallery,代码行数:4,代码来源:WatermarkComboBoxBehavior.cs

示例13: GetCharacterCasing

 public static CharacterCasing GetCharacterCasing(ComboBox comboBox)
 {
     return (CharacterCasing)comboBox.GetValue(CharacterCasingProperty);
 }
开发者ID:ali60,项目名称:NOTAM,代码行数:4,代码来源:ComboBoxBehavior.cs

示例14: GetCommand

 /// <summary>
 /// Retrieves the <see cref="ICommand"/> attached to the <see cref="TextBox"/>.
 /// </summary>
 /// <param name="textBox">TextBox containing the Command dependency property</param>
 /// <returns>The value of the command attached</returns>
 public static ICommand GetCommand(ComboBox comboBox)
 {
     return comboBox.GetValue(CommandProperty) as ICommand;
 }
开发者ID:JohnDMathis,项目名称:Pippin,代码行数:9,代码来源:ComboBoxKey.cs

示例15: GetDeferredSelectedValue

 public static BindingBase GetDeferredSelectedValue(ComboBox obj)
 {
     return (BindingBase)obj.GetValue(DeferredSelectedValueProperty);
 }
开发者ID:Mrding,项目名称:Ribbon,代码行数:4,代码来源:CommandBidingBehavior.cs


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