Table of Contents

Class DataGrid

Namespace
UraniumUI.Material.Controls
Assembly
UraniumUI.Material.dll
public class DataGrid : Border, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IBorderView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IBorderStroke, IStroke
Inheritance
DataGrid
Implements
Inherited Members
Extension Methods

Constructors

DataGrid()

public DataGrid()

Fields

CellItemTemplateProperty

public static readonly BindableProperty CellItemTemplateProperty

Field Value

BindableProperty

ColumnsProperty

public static readonly BindableProperty ColumnsProperty

Field Value

BindableProperty

EmptyViewProperty

public static readonly BindableProperty EmptyViewProperty

Field Value

BindableProperty

EmptyViewTemplateProperty

public static readonly BindableProperty EmptyViewTemplateProperty

Field Value

BindableProperty

ItemsSourceProperty

public static readonly BindableProperty ItemsSourceProperty

Field Value

BindableProperty

LineSeparatorColorProperty

public static readonly BindableProperty LineSeparatorColorProperty

Field Value

BindableProperty

SelectedItemsProperty

public static readonly BindableProperty SelectedItemsProperty

Field Value

BindableProperty

SelectionColorProperty

public static readonly BindableProperty SelectionColorProperty

Field Value

BindableProperty

TitleTemplateProperty

public static readonly BindableProperty TitleTemplateProperty

Field Value

BindableProperty

UseAutoColumnsProperty

public static readonly BindableProperty UseAutoColumnsProperty

Field Value

BindableProperty

Properties

CellItemTemplate

public DataTemplate CellItemTemplate { get; set; }

Property Value

DataTemplate

Columns

public IList<DataGridColumn> Columns { get; set; }

Property Value

IList<DataGridColumn>

CurrentType

public Type CurrentType { get; protected set; }

Property Value

Type

EmptyView

public View EmptyView { get; set; }

Property Value

View

EmptyViewTemplate

public DataTemplate EmptyViewTemplate { get; set; }

Property Value

DataTemplate

HorizontalLineFactory

public Func<View> HorizontalLineFactory { get; set; }

Property Value

Func<View>

ItemsSource

public IList ItemsSource { get; set; }

Property Value

IList

LabelFactory

public Func<BindingBase, Label> LabelFactory { get; set; }

Property Value

Func<BindingBase, Label>

LineSeparatorColor

public Color LineSeparatorColor { get; set; }

Property Value

Color

ReadyToRender

public bool ReadyToRender { get; }

Property Value

bool

SelectedItems

public IList SelectedItems { get; set; }

Property Value

IList

SelectionColor

public Color SelectionColor { get; set; }

Property Value

Color

TitleTemplate

public DataTemplate TitleTemplate { get; set; }

Property Value

DataTemplate

UseAutoColumns

public bool UseAutoColumns { get; set; }

Property Value

bool

Methods

AddRow(int, object, bool)

protected virtual void AddRow(int row, object item, bool isLastRow)

Parameters

row int
item object
isLastRow bool

AddSeparator(int)

protected virtual void AddSeparator(int row)

Parameters

row int

AddTableHeaders(int)

protected virtual void AddTableHeaders(int row = 0)

Parameters

row int

CreateHorizontalLine()

protected virtual View CreateHorizontalLine()

Returns

View

CreateLabel(BindingBase)

protected virtual Label CreateLabel(BindingBase binding)

Parameters

binding BindingBase

Returns

Label

OnEmptyViewTemplateSet()

protected virtual void OnEmptyViewTemplateSet()

OnSelectedItemsSet()

protected virtual void OnSelectedItemsSet()

OnTitleTemplateChanged()

protected virtual void OnTitleTemplateChanged()

RemoveRow(int)

protected virtual void RemoveRow(int row)

Parameters

row int

Render()

protected virtual void Render()

RenderEmptyView()

protected virtual void RenderEmptyView()

SetAutoColumns()

protected virtual void SetAutoColumns()

SetSelectionVisualStates(View)

protected virtual void SetSelectionVisualStates(View view)

Parameters

view View

SetSelectionVisualStatesForAll()

protected void SetSelectionVisualStatesForAll()

SlideRow(int, int)

protected virtual void SlideRow(int row, int amount = 1)

Parameters

row int
amount int

UpdateSelections()

protected void UpdateSelections()