In This Article

TaskColumn Class

Represents a task column.

[TemplateVisualState(Name = "NotDragging", GroupName = "DragStates")]
[TemplateVisualState(Name = "Dragging", GroupName = "DragStates")]
[TemplatePart(Name = "PART_Gripper", Type = typeof(FrameworkElement))]
public class TaskColumn : HeaderedItemsControl
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl HeaderedItemsControl object

Constructors

TaskColumn()

Initializes an instance of the TaskColumn class.

public TaskColumn()

Properties

ArrangeHeightAnimated

Gets or sets the arrange height of the element. This property is for internal use only.

public double ArrangeHeightAnimated { get; set; }

Property Value

double:

The arrange height of the element.

ArrangeWidthAnimated

Gets or sets the arrange width of the element. This property is for internal use only.

public double ArrangeWidthAnimated { get; set; }

Property Value

double:

The arrange width of the element.

ArrangeXAnimated

Gets or sets the arrange x-coordinate of the element. This property is for internal use only.

public double ArrangeXAnimated { get; set; }

Property Value

double:

The arrange x-coordinate of the element.

ArrangeYAnimated

Gets or sets the arrange y-coordinate of the element. This property is for internal use only.

public double ArrangeYAnimated { get; set; }

Property Value

double:

The arrange y-coordinate of the element.

CardCornerRadius

Gets or sets the card corner radius.

public CornerRadius CardCornerRadius { get; set; }

Property Value

CornerRadius:

The card corner radius. The default value is 3.0.

CardSpacing

Gets or sets the spacing between cards.

public double CardSpacing { get; set; }

Property Value

double:

The spacing between cards. The default value is 7.0.

CornerRadius

Gets or sets the corner radius.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius:

The corner radius. The default value is 3.0.

FooterTemplate

Gets or sets the DataTemplate to use for the column footer.

public DataTemplate FooterTemplate { get; set; }

Property Value

DataTemplate:

The DataTemplate to use for column footers.

FooterTemplateSelector

Gets or sets the DataTemplateSelector to use for the column footer.

public DataTemplateSelector FooterTemplateSelector { get; set; }

Property Value

DataTemplateSelector:

The DataTemplateSelector to use for column footers.

HasFooter

Gets whether the column should display a footer.

public bool HasFooter { get; }

Property Value

bool:

true if the column should display a footer; otherwise, false.

IsDragging

Gets whether the control is currently being dragged.

public bool IsDragging { get; }

Property Value

bool:

true if the control is currently being dragged; otherwise, false.

RotationAngle

Gets or sets the current rotation angle of the control.

public double RotationAngle { get; set; }

Property Value

double:

The current rotation angle of the control. The default value is 0 degrees.

Methods

ClearContainerForItemOverride(DependencyObject, object)

protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

The System.Windows.DependencyObject that is the wrapper element.

item object

The item that is being wrapped.

GetContainerForItemOverride()

Creates or identifies the element used to display the specified item.

protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject:

The element that is used to display the given item.

GetLayoutClip(Size)

Returns a geometry for a clipping mask.

protected override Geometry GetLayoutClip(Size layoutSlotSize)
Parameter Type Description
layoutSlotSize Size

The layout slot size.

Returns

Geometry:

The clipping mask geometry.

HitTestForCard(Point)

Hit tests the specified location for a TaskCard that is under it.

public TaskCard HitTestForCard(Point location)
Parameter Type Description
location Point

The System.Windows.Point location, relative to this column.

Returns

TaskCard:

The TaskCard that is under the location, if any.

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own item container.

protected override bool IsItemItsOwnContainerOverride(object item)
Parameter Type Description
item object

Specified item.

Returns

bool:

true if the item is its own item container; otherwise, false.

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate.

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

OnItemsChanged(NotifyCollectionChangedEventArgs)

Occurs when the items have changed.

protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameter Type Description
e NotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs containing data related to this event.

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

The System.Windows.DependencyObject that is the wrapper element.

item object

The item that is being wrapped.

Fields

ArrangeHeightAnimatedProperty

Identifies the ArrangeHeightAnimated dependency property. This field is read-only.

public static readonly DependencyProperty ArrangeHeightAnimatedProperty

ArrangeWidthAnimatedProperty

Identifies the ArrangeWidthAnimated dependency property. This field is read-only.

public static readonly DependencyProperty ArrangeWidthAnimatedProperty

ArrangeXAnimatedProperty

Identifies the ArrangeXAnimated dependency property. This field is read-only.

public static readonly DependencyProperty ArrangeXAnimatedProperty

ArrangeYAnimatedProperty

Identifies the ArrangeYAnimated dependency property. This field is read-only.

public static readonly DependencyProperty ArrangeYAnimatedProperty

CardCornerRadiusProperty

Identifies the CardCornerRadius dependency property. This field is read-only.

public static readonly DependencyProperty CardCornerRadiusProperty

CardSpacingProperty

Identifies the CardSpacing dependency property. This field is read-only.

public static readonly DependencyProperty CardSpacingProperty

CornerRadiusProperty

Identifies the CornerRadius dependency property. This field is read-only.

public static readonly DependencyProperty CornerRadiusProperty

FooterTemplateProperty

Identifies the FooterTemplate dependency property. This field is read-only.

public static readonly DependencyProperty FooterTemplateProperty

FooterTemplateSelectorProperty

Identifies the FooterTemplateSelector dependency property. This field is read-only.

public static readonly DependencyProperty FooterTemplateSelectorProperty

HasFooterProperty

Identifies the HasFooter dependency property. This field is read-only.

public static readonly DependencyProperty HasFooterProperty

IsDraggingProperty

Identifies the IsDragging dependency property. This field is read-only.

public static readonly DependencyProperty IsDraggingProperty

RotationAngleProperty

Identifies the RotationAngle dependency property. This field is read-only.

public static readonly DependencyProperty RotationAngleProperty