Skip to end of metadata
Go to start of metadata

Represents a UXGridView column that hosts textual or image content in its cells.

Definition

public class UXGridViewComboBoxColumn : UXGridViewBoundColumn

Summary

The following table summarizes the members exposed in this class.

Public Constructors

UXGridViewComboBoxColumn Constructor() Initializes a new instance of the UXGridViewComboBoxColumn class.

Public Properties

AutoOpenDropDown Gets or sets a value that indicates whether the drop down is automatically opened when cell got focused.
DisplayMemberPath Gets or sets the display member path for the combo box element.
DisplayMode Gets or sets a value that determine the the cell presentation.
ImageBinding Gets or sets the binding that associates the image with a property in the data source.
ImageHeight Gets or sets the height of the image.
ImageMargin Gets or sets the margin of the image.
ImageMemberPath Gets or sets the image member path for the combo box element.
ImageStretch Gets or sets a value that describes how an Image should be stretched to fill the destination rectangle.
ImageWidth Gets or sets the width of the image.
TextImageRelation Gets or sets the position of the text and image relative to each other on a control.
ValueMemberPath Gets or sets the value member path for the combo box element.

Fields

DisplayModeProperty Identifies the DisplayMode dependency property.
ImageHeightProperty Identifies the ImageHeight dependency property.
ImageMarginProperty Identifies the ImageMargin dependency property.
ImageStretchProperty Identifies the ImageStretch dependency property.
ImageWidthProperty Identifies the ImageWidth dependency property.
TextImageRelationProperty Identifies the TextImageRelation dependency property.

Protected Methods

CancelCellEdit(FrameworkElement, object) Causes the column cell being edited to revert to the specified value.
GenerateEditingElement(UXGridViewCell, object) Gets a UXGridViewComboBox control that is bound to the column's Binding property value.
GenerateElement(UXGridViewCell, object) Gets a read-only UXGridViewDropDownButton element that is bound to the column's Binding property value.
PrepareCellForEdit(FrameworkElement, RoutedEventArgs) Called when a cell in the column enters editing mode.

Public Constructors

public UXGridViewComboBoxColumn()

Initializes a new instance of the UXGridViewComboBoxColumn class.

Public Properties

public bool AutoOpenDropDown { get; set; }

Gets or sets a value that indicates whether the drop down is automatically opened when cell got focused.

public string DisplayMemberPath { get; set; }

Gets or sets the display member path for the combo box element.

public ContentType DisplayMode { get; set; }

Gets or sets a value that determine the the cell presentation.

public Binding ImageBinding { get; set; }

Gets or sets the binding that associates the image with a property in the data source.

public double ImageHeight { get; set; }

Gets or sets the height of the image.

public Thickness ImageMargin { get; set; }

Gets or sets the margin of the image.

public string ImageMemberPath { get; set; }

Gets or sets the image member path for the combo box element.

public Stretch ImageStretch { get; set; }

Gets or sets a value that describes how an Image should be stretched to fill the destination rectangle.

public double ImageWidth { get; set; }

Gets or sets the width of the image.

public TextImageRelation TextImageRelation { get; set; }

Gets or sets the position of the text and image relative to each other on a control.

public string ValueMemberPath { get; set; }

Gets or sets the value member path for the combo box element.

Fields

public static readonly DependencyProperty DisplayModeProperty

Identifies the DisplayMode dependency property.

public static readonly DependencyProperty ImageHeightProperty

Identifies the ImageHeight dependency property.

public static readonly DependencyProperty ImageMarginProperty

Identifies the ImageMargin dependency property.

public static readonly DependencyProperty ImageStretchProperty

Identifies the ImageStretch dependency property.

public static readonly DependencyProperty ImageWidthProperty

Identifies the ImageWidth dependency property.

public static readonly DependencyProperty TextImageRelationProperty

Identifies the TextImageRelation dependency property.

Protected Methods

protected void CancelCellEdit(FrameworkElement editingElement, object uneditedValue)

Causes the column cell being edited to revert to the specified value.

Parameters

editingElement The element that the column displays for a cell in editing mode.
uneditedValue The previous, unedited value in the cell being edited.

protected FrameworkElement GenerateEditingElement(UXGridViewCell cell, object dataItem)

Gets a UXGridViewComboBox control that is bound to the column's Binding property value.

Parameters

cell The cell that will contain the generated element.
dataItem The data item represented by the row that contains the intended cell.

Return Types

A new UXGridViewComboBox control that is bound to the column's Binding property value.

protected FrameworkElement GenerateElement(UXGridViewCell cell, object dataItem)

Gets a read-only UXGridViewDropDownButton element that is bound to the column's Binding property value.

Parameters

cell The cell that will contain the generated element.
dataItem The data item represented by the row that contains the intended cell.

Return Types

A new, read-only UXGridViewDropDownButton element that is bound to the column's Binding property value.

protected object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)

Called when a cell in the column enters editing mode.

Parameters

editingElement The element that the column displays for a cell in editing mode.
editingEventArgs Information about the user gesture that is causing a cell to enter editing mode.

Return Types

The unedited value.
  • No labels