本文整理汇总了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;
}
示例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);
}
示例3: GetSelectedTemplate
public static DataTemplate GetSelectedTemplate(ComboBox obj)
{
return (DataTemplate)obj.GetValue(SelectedTemplateProperty);
}
示例4: GetDropDownTemplate
public static DataTemplate GetDropDownTemplate(ComboBox obj)
{
return (DataTemplate)obj.GetValue(DropDownTemplateProperty);
}
示例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);
}
示例6: GetAutoSize
public static bool GetAutoSize(ComboBox comboBox)
{
return (bool) comboBox.GetValue(AutoSizeProperty);
}
示例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;
}
示例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);
}
示例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;
}
示例10: GetLabelStyle
public static Style GetLabelStyle(ComboBox obj)
{
return (Style)obj.GetValue(LabelStyleProperty);
}
示例11: GetLabel
public static string GetLabel(ComboBox obj)
{
return (string)obj.GetValue(LabelProperty);
}
示例12: GetEnableWatermark
public static bool GetEnableWatermark(ComboBox obj)
{
return (bool)obj.GetValue(EnableWatermarkProperty);
}
示例13: GetCharacterCasing
public static CharacterCasing GetCharacterCasing(ComboBox comboBox)
{
return (CharacterCasing)comboBox.GetValue(CharacterCasingProperty);
}
示例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;
}
示例15: GetDeferredSelectedValue
public static BindingBase GetDeferredSelectedValue(ComboBox obj)
{
return (BindingBase)obj.GetValue(DeferredSelectedValueProperty);
}