C# Класс UniformGridForUWP.UniformGrid

Provides a way to arrange content in a grid where all the cells in the grid have the same size.
Наследование: Windows.UI.Xaml.Controls.Panel
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ColumnsProperty Windows.UI.Xaml.DependencyProperty
FirstColumnProperty Windows.UI.Xaml.DependencyProperty
RowsProperty Windows.UI.Xaml.DependencyProperty

Открытые методы

Метод Описание
UniformGrid ( ) : System

Initializes a new instance of the UniformGrid.

Защищенные методы

Метод Описание
ArrangeOverride ( Size finalSize ) : Size

Defines the layout of the System.Windows.Controls.Primitives.UniformGrid by distributing space evenly among all of the child elements.

Приватные методы

Метод Описание
MeasureOverride ( Size constraint ) : Size
OnFirstColumnChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Check that the offset is positive. This seems to be the only check in the WPF uniform grid. Might also make the offset be less than the number of items included in the grid.

OnRowsColumnsChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Validity check on row or column. For now, just check that it is positive. This code could be much simplified.

UpdateComputedValues ( ) : void

If no row count or column count is specified, use the smallest square number that will contain all the items as our dimensions. Otherwise, calculate the number of rows or columns needed to contain all items.

Описание методов

ArrangeOverride() защищенный Метод

Defines the layout of the System.Windows.Controls.Primitives.UniformGrid by distributing space evenly among all of the child elements.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize Windows.Foundation.Size The System.Windows.Size of the area for the grid to use.
Результат Windows.Foundation.Size

UniformGrid() публичный Метод

Initializes a new instance of the UniformGrid.
public UniformGrid ( ) : System
Результат System

Описание свойств

ColumnsProperty публичное статическое свойство

public static DependencyProperty,Windows.UI.Xaml ColumnsProperty
Результат Windows.UI.Xaml.DependencyProperty

FirstColumnProperty публичное статическое свойство

public static DependencyProperty,Windows.UI.Xaml FirstColumnProperty
Результат Windows.UI.Xaml.DependencyProperty

RowsProperty публичное статическое свойство

public static DependencyProperty,Windows.UI.Xaml RowsProperty
Результат Windows.UI.Xaml.DependencyProperty