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 UXGridViewTextColumn : UXGridViewBoundColumn

Summary

The following table summarizes the members exposed in this class.

Public Constructors

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

Public Properties

DisplayMode Gets or sets a value that determine the the cell presentation.
FontFamily Gets or sets the font family of the content of cells in the column.
FontSize Gets or sets the font size of the content of cells in the column.
FontStyle Gets or sets the font style of the content of cells in the column.
FontWeight Gets or sets the font weight of the contents of cells in the column.
Foreground Gets or sets the brush that is used to paint the text contents of cells in the column.
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.
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.

Fields

DisplayModeProperty Identifies the DisplayMode dependency property.
FontFamilyProperty Identifies the FontFamily 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 UXTextBox control that is bound to the column's Binding property value.
GenerateElement(UXGridViewCell, object) Gets a read-only StylishLabel 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 UXGridViewTextColumn()

Initializes a new instance of the UXGridViewTextColumn class.

Public Properties

public ContentType DisplayMode { get; set; }

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

public FontFamily FontFamily { get; set; }

Gets or sets the font family of the content of cells in the column.

public double FontSize { get; set; }

Gets or sets the font size of the content of cells in the column.

public FontStyle FontStyle { get; set; }

Gets or sets the font style of the content of cells in the column.

public FontWeight FontWeight { get; set; }

Gets or sets the font weight of the contents of cells in the column.

public Brush Foreground { get; set; }

Gets or sets the brush that is used to paint the text contents of cells in the column.

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 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.

Fields

public static readonly DependencyProperty DisplayModeProperty

Identifies the DisplayMode dependency property.

public static readonly DependencyProperty FontFamilyProperty

Identifies the FontFamily 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 UXTextBox 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 UXTextBox control that is bound to the column's Binding property value.

protected FrameworkElement GenerateElement(UXGridViewCell cell, object dataItem)

Gets a read-only StylishLabel 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 StylishLabel 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