Skip to end of metadata
Go to start of metadata

Remarks

Derived from UXComboBox, UXRibbonComboBox exposes many of the features available in UXComboBox, such as selection control with built-in text search support, editable mode and also it fully support MVVM model. To learn more about UXComboBox, see UXComboBox Overview.

XAML

The result looks like the following figure.

To learn more about ribbon controls, see Working with Ribbon Controls.

 

Definition

public class UXRibbonComboBox : UXComboBox,

IRibbonKeyTipAction, IRibbonControl

Summary

The following table summarizes the members exposed in this class.

Public Constructors

UXRibbonComboBox Constructor()Creates a new instance of UXRibbonComboBox class.

Public Properties

IconGets or sets a value that specifies the control icon.
LargeIconGets or sets a value that specifies the control large icon.
MaximumSizeGets or sets a value that specifies the control maximum size.
MinimumSizeGets or sets a value that specifies the control minimum size.
SizeGets or sets a value that specifies the control size.

Fields

IconPropertyIdentifies the Icon dependency property.
LargeIconPropertyIdentifies the LargeIcon dependency property.
MaximumSizePropertyIdentifies the MaximumSize dependency property.
MinimumSizePropertyIdentifies the MinimumSize dependency property.
SizePropertyIdentifies the Size dependency property.

Public Methods

OnApplyTemplate()When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate(). In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
RaiseAction()Raise the action in element that implements IRibbonKeyTipAction.

Protected Methods


Public Constructors

public UXRibbonComboBox()

Creates a new instance of UXRibbonComboBox class.

Public Properties

public ImageSource Icon { get; set; }

Gets or sets a value that specifies the control icon.

public ImageSource LargeIcon { get; set; }

Gets or sets a value that specifies the control large icon.

public RibbonControlSize MaximumSize { get; set; }

Gets or sets a value that specifies the control maximum size.

public RibbonControlSize MinimumSize { get; set; }

Gets or sets a value that specifies the control minimum size.

public RibbonControlSize Size { get; set; }

Gets or sets a value that specifies the control size.

Fields

public static readonly DependencyProperty IconProperty

Identifies the Icon dependency property.

public static readonly DependencyProperty LargeIconProperty

Identifies the LargeIcon dependency property.

public static readonly DependencyProperty MaximumSizeProperty

Identifies the MaximumSize dependency property.

public static readonly DependencyProperty MinimumSizeProperty

Identifies the MinimumSize dependency property.

public static readonly DependencyProperty SizeProperty

Identifies the Size dependency property.

Public Methods

public void OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate(). In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

public void RaiseAction()

Raise the action in element that implements IRibbonKeyTipAction.

Protected Methods

protected void Menu_Closed(object sender, ISRoutedEventArgs e)

 

Parameters

sender 
e 

 

protected void OnKeyDown(KeyEventArgs e)

 

Parameters

e 

 

protected void OnSelectedIndexChanged(int oldIndex, int newIndex)

 

Parameters

oldIndex 
newIndex 
  • No labels