New to Telerik UI for WPFStart a free 30-day trial

This class represents a GanttView column definition. A collection of ColumnDefinitions is used for describing the tree-list part of the GanttView control.

Definition

Constructors

C#
public ColumnDefinition()

Fields

CellEditTemplateProperty

DependencyProperty

Identifies the CellEditTemplate dependency property.

C#
public static readonly DependencyProperty CellEditTemplateProperty

Identifies the CellHighlightTemplate dependency property.

C#
public static readonly DependencyProperty CellHighlightTemplateProperty

Identifies the CellSelectionTemplate dependency property.

C#
public static readonly DependencyProperty CellSelectionTemplateProperty

CellTemplateProperty

DependencyProperty

Identifies the CellTemplate dependency property.

C#
public static readonly DependencyProperty CellTemplateProperty

IsResizableProperty

DependencyProperty

Identifies the IsResizable dependency property.

C#
public static readonly DependencyProperty IsResizableProperty

MaxWidthProperty

DependencyProperty

Identifies the MaxWidth dependency property.

C#
public static readonly DependencyProperty MaxWidthProperty

MinWidthProperty

DependencyProperty

Identifies the MinWidth dependency property.

C#
public static readonly DependencyProperty MinWidthProperty

Properties

CellEditTemplate

DataTemplate

Gets or sets the template of the cells in this column when in Edit mode. If this template is not set, editing is not allowed in the corresponding column. This is a dependency property.

C#
public DataTemplate CellEditTemplate { get; set; }
Remarks:

The DataContext of this template is the event in the given row.

Gets or sets the template of the cells in this column when the mouse is over the cell. If this property is not set, the value of the CellTemplate is used. This is a dependency property.

C#
public DataTemplate CellHighlightTemplate { get; set; }
Remarks:

Please notice that the DataContext of this template is not actually the event in the given row, but a Proxy object containing the following properties: Start, End, Title, FormattedValue, OriginalEvent. The OriginalEvent is the event in the row and the FormattedValue is the value extracted through the MemberBinding.

Gets or sets the template of the cells in this column when the mouse is over the cell. If this property is not set, the value of the CellTemplate is used.

C#
public DataTemplate CellSelectionTemplate { get; set; }
Remarks:

Please notice that the DataContext of this template is not actually the event in the given row, but a Proxy object containing the following properties: Start, End, Title, FormattedValue, OriginalEvent. The OriginalEvent is the event in the row and the FormattedValue is the value extracted through the MemberBinding.

CellTemplate

DataTemplate

Gets or sets the template of the cells in this column when in normal state. If the CellHighlightTemplate or CellSelectionTemplate are not set, the selected or highlighted cells also use this template. This is a dependency property.

C#
public DataTemplate CellTemplate { get; set; }
Remarks:

When this template is set the GanttView's rendering is slower than using directly the MemberBinding property, so consider carefully if you need to use this property or not. Please notice that the DataContext of this template is not actually the event in the given row, but a Proxy object containing the following properties: Start, End, Title, FormattedValue, OriginalEvent. The OriginalEvent is the event in the row and the FormattedValue is the value extracted through the MemberBinding. Use FormattedValue for best performance.

Gets or sets a value indicating whether the column can be resized through the column resizer or not.

C#
public bool IsResizable { get; set; }

Gets or sets the maximum width of the column. The value of this property doesn't restrict the ColumnWidth property.

C#
public double MaxWidth { get; set; }

Gets or sets the binding to be used to evaluate the Cell content.

C#
public Binding MemberBinding { get; set; }

Gets or sets the minimum width of the column. The value of this property doesn't restrict the ColumnWidth property.

C#
public double MinWidth { get; set; }

Methods

When implemented in a derived class, creates a new instance of the Telerik.Windows.Core.PlatformIndependentFreezable derived class.

C#
protected override PlatformIndependentFreezable CreateInstanceOverride()
Returns:

PlatformIndependentFreezable

The new instance.

Overrides: PlatformIndependentFreezable.CreateInstanceOverride()

When overridden in the derived class this method determines which is the actual data item for the row for a given item from the list (in most cases an HierarchicalItem).

C#
protected virtual object GetDataContextForItemOverride(object itemData)
Parameters:itemDataobject

The original item from the source collection. In most cases this is an HierarchicalItem.

Returns:

object

The item to be used as a data item for the cell, generated for this column for the given data item. The default implementation just extracts the SourceItem from the HierarchicalItem.