Properties
AutoSize
#Gets or sets a value indicating whether this column will auto size to the content of the grid.
Remarks: This usually will only auto size based on the visible content to be as performant as possible.
Value:
true to auto size the column; otherwise, false.CellToolTipBinding
#Gets or sets the binding to use to get the tooltip for each cell in this column.
Value: The binding to get the tooltip for cells in this column
DisplayIndex
#Gets or sets the index of the column in display order, or -1 to use the order they are added.
Remarks: This value must be within the range of the total number of columns that are added.
Editable
#Gets or sets a value indicating whether the user can edit the contents of the cells, if the DataCell allows it.
Value:
true if the data cell is editable; otherwise, false.Expand
#Gets or sets a value indicating whether this column should expand to fill the available space in the Grid
Remarks: If more than one column has this set, they will share the space evenly.
Value:
true to expand the column; otherwise, falseHeaderTextAlignment
#Gets or sets a value to specify the header text alignment for this column
Value: TextAlignment for the column header
HeaderToolTip
#Gets or sets the tooltip to display when the user moves the cursor over the header of this column.
Value: The tooltip for the header of this column
Remarks: Some platforms may use this to identify controls (e.g. web)
NativeHandle
nint NativeHandle { get; }
Gets the native platform-specific handle for integration purposes
Value: The native handle.
Resizable
#Gets or sets a value indicating whether the column is resizable by the user.
Value:
true if resizable; otherwise, false.Sortable
#Gets or sets a value indicating whether the user can click on the header.
Value:
true if the user can click the header; otherwise, false.See Also: Grid.ColumnHeaderClick
Visible
#Gets or sets a value indicating whether this column is visible.
Value:
true if visible; otherwise, false.Methods
Remarks: Most events are late bound by this method. Instead of wiring all events, this will be called with an event string that is defined by the control. This is called automatically when attaching to events, but must be called manually when users of the control only override the event's On... method.
Initialize
void Initialize()
Called after the widget is constructed
Remarks: This gets called automatically after the control is constructed and the Widget.IHandler.Widget and Widget.Platform properties are set. When the handler has specialized construction methods, then the AutoInitializeAttribute can be used to disable automatic initialization. In this case, it is the responsibility of the subclass to call Widget.Initialize()
UnhandleEvent
Called when the last subscriber to an event has been removed, so the platform can stop listening for it.
Remarks: Only reached for events whose remove accessor uses PropertyStore.RemoveHandlerEvent(string, Delegate), and only for events that were attached because something subscribed to them. An event attached because the widget overrides its On[Event] method is never detached, since it has to keep firing regardless. Most events stay attached for the life of the widget, which costs nothing. Detaching is worth wiring up for the few that hold onto something expensive or process wide while they are attached, such as a system wide hook. Handlers deriving from WidgetHandler<TWidget> get an implementation of this that dispatches to WidgetHandler<TWidget>.DetachEvent(string), which is what to override.
Parameters:
| id (string) | ID of the event to stop handling |