Table of Contents

Class ListViewColumnAutoSizeBehavior

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

This behavior sizes the ListView columns using another attached behavior for logic.

public class ListViewColumnAutoSizeBehavior : Behavior<ListView>, IAnimatable, IAttachedObject
Inheritance
ListViewColumnAutoSizeBehavior
Implements
Inherited Members
Extension Methods

Fields

WidthProperty

Backing storage for Width property assigned to each GridViewColumn

public static readonly DependencyProperty WidthProperty

Field Value

DependencyProperty

Methods

GetWidth(GridViewColumn)

Getter for GridViewColumn attached property for width

public static string GetWidth(GridViewColumn gvc)

Parameters

gvc GridViewColumn

Column

Returns

string

Width

OnAttached()

Called after the behavior is attached to an AssociatedObject.

protected override void OnAttached()

Remarks

Override this to hook up functionality to the AssociatedObject.

OnDetaching()

Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.

protected override void OnDetaching()

Remarks

Override this to unhook functionality from the AssociatedObject.

SetWidth(GridViewColumn, string)

Setter for GridViewColumn attached property for width

public static void SetWidth(GridViewColumn gvc, string value)

Parameters

gvc GridViewColumn

Column

value string

Value to assign