GridViewExtensions.Template<TItem> method (1 of 3)
Sets the cell template. Alias for Bind.
public static GridViewColumn<TItem> Template<TItem>(this GridViewColumn<TItem> column, IDataTemplate<TItem> template)| parameter | description |
|---|---|
| TItem | Item type. |
| column | Target column. |
| template | Cell template. |
Return Value
Section titled “Return Value”The column for chaining.
See Also
Section titled “See Also”- class GridViewColumn<TItem>
- interface IDataTemplate<TItem>
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.Template<TItem,TElement> method (2 of 3)
Section titled “GridViewExtensions.Template<TItem,TElement> method (2 of 3)”Sets the cell template using delegate-based templating with a simple bind callback. Alias for Bind.
public static GridViewColumn<TItem> Template<TItem, TElement>(this GridViewColumn<TItem> column, Func<TemplateContext, TElement> build, Action<TElement, TItem> bind) where TElement : FrameworkElement| parameter | description |
|---|---|
| TItem | Item type. |
| TElement | Template root element type. |
| column | Target column. |
| build | Template build callback. |
| bind | Template bind callback. |
Return Value
Section titled “Return Value”The column for chaining.
See Also
Section titled “See Also”- class GridViewColumn<TItem>
- class TemplateContext
- class FrameworkElement
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls
GridViewExtensions.Template<TItem,TElement> method (3 of 3)
Section titled “GridViewExtensions.Template<TItem,TElement> method (3 of 3)”Sets the cell template using delegate-based templating.
public static GridViewColumn<TItem> Template<TItem, TElement>(this GridViewColumn<TItem> column, Func<TemplateContext, TElement> build, Action<TElement, TItem, int, TemplateContext> bind, Action<TElement, TItem, int, TemplateContext>? unbind = null) where TElement : FrameworkElement| parameter | description |
|---|---|
| TItem | Item type. |
| TElement | Template root element type. |
| column | Target column. |
| build | Template build callback. |
| bind | Template bind callback. |
| unbind | Optional template cleanup callback. |
Return Value
Section titled “Return Value”The column for chaining.
See Also
Section titled “See Also”- class GridViewColumn<TItem>
- class TemplateContext
- class FrameworkElement
- class GridViewExtensions
- namespace Aprillz.MewUI.Controls