GridViewExtensions.AddColumn<TItem> method (1 of 9)
Adds a column.
public static GridView AddColumn<TItem>(this GridView gridView, string header, double width, IDataTemplate<TItem> template, double minWidth = 0m, bool resizable = true)| parameter | description |
|---|---|
| TItem | Item type. |
| gridView | Target grid view. |
| header | Column header text. |
| width | Column width in DIPs. |
| template | Cell template. |
| minWidth | Minimum column width (0 = no minimum). |
| resizable | Whether the column can be resized. |
Return Value
Section titled “Return Value”The grid view for chaining.
See Also
Section titled “See Also”- class GridView
- interface IDataTemplate<TItem>
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.AddColumn<TItem> method (2 of 9)
Section titled “GridViewExtensions.AddColumn<TItem> method (2 of 9)”Adds a column using delegate-based templating.
public static GridView AddColumn<TItem>(this GridView gridView, string header, double width, Func<TemplateContext, FrameworkElement> build, Action<FrameworkElement, TItem, int, TemplateContext> bind, double minWidth = 0m, bool resizable = true)| parameter | description |
|---|---|
| TItem | Item type. |
| gridView | Target grid view. |
| header | Column header text. |
| width | Column width in DIPs. |
| build | Template build callback. |
| bind | Template bind callback. |
| minWidth | Minimum column width (0 = no minimum). |
| resizable | Whether the column can be resized. |
Return Value
Section titled “Return Value”The grid view for chaining.
See Also
Section titled “See Also”- class GridView
- class TemplateContext
- class FrameworkElement
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.AddColumn<TItem> method (3 of 9)
Section titled “GridViewExtensions.AddColumn<TItem> method (3 of 9)”Adds a fixed-width column with minimum and maximum constraints.
public static GridView AddColumn<TItem>(this GridView gridView, string header, double width, IDataTemplate<TItem> template, double minWidth, double maxWidth, bool resizable = true)See Also
Section titled “See Also”- class GridView
- interface IDataTemplate<TItem>
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.AddColumn<TItem> method (4 of 9)
Section titled “GridViewExtensions.AddColumn<TItem> method (4 of 9)”Adds a column using Auto, Star, or Pixel sizing.
public static GridView AddColumn<TItem>(this GridView gridView, string header, GridLength width, IDataTemplate<TItem> template, double minWidth = 0m, double maxWidth = Infinitym, bool resizable = true)See Also
Section titled “See Also”- class GridView
- struct GridLength
- interface IDataTemplate<TItem>
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.AddColumn<TItem> method (5 of 9)
Section titled “GridViewExtensions.AddColumn<TItem> method (5 of 9)”Adds a column using delegate-based templating with an unbind callback.
public static GridView AddColumn<TItem>(this GridView gridView, string header, double width, Func<TemplateContext, FrameworkElement> build, Action<FrameworkElement, TItem, int, TemplateContext> bind, Action<FrameworkElement, TItem, int, TemplateContext> unbind, double minWidth = 0m, bool resizable = true)| parameter | description |
|---|---|
| TItem | Item type. |
| gridView | Target grid view. |
| header | Column header text. |
| width | Column width in DIPs. |
| build | Template build callback. |
| bind | Template bind callback. |
| unbind | Template unbind callback. |
| minWidth | Minimum column width (0 = no minimum). |
| resizable | Whether the column can be resized. |
Return Value
Section titled “Return Value”The grid view for chaining.
See Also
Section titled “See Also”- class GridView
- class TemplateContext
- class FrameworkElement
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.AddColumn<TItem> method (6 of 9)
Section titled “GridViewExtensions.AddColumn<TItem> method (6 of 9)”Adds a fixed-width column with minimum and maximum constraints using delegate-based templating.
public static GridView AddColumn<TItem>(this GridView gridView, string header, double width, Func<TemplateContext, FrameworkElement> build, Action<FrameworkElement, TItem, int, TemplateContext> bind, double minWidth, double maxWidth, bool resizable = true)| parameter | description |
|---|---|
| TItem | Item type. |
| gridView | Target grid view. |
| header | Column header text. |
| width | Column width in DIPs. |
| build | Template build callback. |
| bind | Template bind callback. |
| minWidth | Minimum column width (0 = no minimum). |
| maxWidth | Maximum column width. |
| resizable | Whether the column can be resized. |
Return Value
Section titled “Return Value”The grid view for chaining.
See Also
Section titled “See Also”- class GridView
- class TemplateContext
- class FrameworkElement
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.AddColumn<TItem> method (7 of 9)
Section titled “GridViewExtensions.AddColumn<TItem> method (7 of 9)”Adds an Auto, Star, or Pixel column using delegate-based templating.
public static GridView AddColumn<TItem>(this GridView gridView, string header, GridLength width, Func<TemplateContext, FrameworkElement> build, Action<FrameworkElement, TItem, int, TemplateContext> bind, double minWidth = 0m, double maxWidth = Infinitym, bool resizable = true)See Also
Section titled “See Also”- class GridView
- struct GridLength
- class TemplateContext
- class FrameworkElement
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.AddColumn<TItem> method (8 of 9)
Section titled “GridViewExtensions.AddColumn<TItem> method (8 of 9)”Adds a fixed-width column with minimum and maximum constraints using delegate-based templating with an unbind callback.
public static GridView AddColumn<TItem>(this GridView gridView, string header, double width, Func<TemplateContext, FrameworkElement> build, Action<FrameworkElement, TItem, int, TemplateContext> bind, Action<FrameworkElement, TItem, int, TemplateContext> unbind, double minWidth, double maxWidth, bool resizable = true)| parameter | description |
|---|---|
| TItem | Item type. |
| gridView | Target grid view. |
| header | Column header text. |
| width | Column width in DIPs. |
| build | Template build callback. |
| bind | Template bind callback. |
| unbind | Template unbind callback. |
| minWidth | Minimum column width (0 = no minimum). |
| maxWidth | Maximum column width. |
| resizable | Whether the column can be resized. |
Return Value
Section titled “Return Value”The grid view for chaining.
See Also
Section titled “See Also”- class GridView
- class TemplateContext
- class FrameworkElement
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.AddColumn<TItem> method (9 of 9)
Section titled “GridViewExtensions.AddColumn<TItem> method (9 of 9)”Adds an Auto, Star, or Pixel column using delegate-based templating with an unbind callback.
public static GridView AddColumn<TItem>(this GridView gridView, string header, GridLength width, Func<TemplateContext, FrameworkElement> build, Action<FrameworkElement, TItem, int, TemplateContext> bind, Action<FrameworkElement, TItem, int, TemplateContext> unbind, double minWidth = 0m, double maxWidth = Infinitym, bool resizable = true)| parameter | description |
|---|---|
| TItem | Item type. |
| gridView | Target grid view. |
| header | Column header text. |
| width | Column width. |
| build | Template build callback. |
| bind | Template bind callback. |
| unbind | Template unbind callback. |
| minWidth | Minimum column width (0 = no minimum). |
| maxWidth | Maximum column width. |
| resizable | Whether the column can be resized. |
Return Value
Section titled “Return Value”The grid view for chaining.
See Also
Section titled “See Also”- class GridView
- struct GridLength
- class TemplateContext
- class FrameworkElement
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls