C# Класс ArcGISPortalViewer.Controls.Primitives.UniformGrid

A UniformGrid implementation for Silverlight that arranges children in a grid with all equal cell sizes.
Наследование: Windows.UI.Xaml.Controls.Panel
Показать файл Открыть проект

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

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

Private Properties

Свойство Тип Описание
OnIntegerDependencyPropertyChanged void
UpdateComputedValues void

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

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

Initializes a new instance of UniformGrid.

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

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

Arrange the children of the UniformGrid by distributing space evenly among the children, making each child the size equal to a cell portion of the arrangeSize parameter.

MeasureOverride ( Size constraint ) : Size

Compute the desired size of the UniformGrid by measuring all of the children with a constraint equal to a cell's portion of the given constraint. The maximum child width and maximum child height are tracked, and then the desired size is computed by multiplying these maximums by the row and column count.

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

Метод Описание
OnIntegerDependencyPropertyChanged ( DependencyObject o, DependencyPropertyChangedEventArgs e ) : void

Validate the new property value and silently revert if the new value is not appropriate. Used in place of WPF value coercian by the dependency properties in UniformGrid.

UpdateComputedValues ( ) : void

If the Rows or Columns values are set to 0, dynamically compute the values based on the actual number of non-collapsed children.

In the case when both Rows and Columns are set to 0, the Rows and Columns will be equal, laying out a square grid.

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

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

Arrange the children of the UniformGrid by distributing space evenly among the children, making each child the size equal to a cell portion of the arrangeSize parameter.
protected ArrangeOverride ( Size arrangeSize ) : Size
arrangeSize Windows.Foundation.Size The arrange size.
Результат Windows.Foundation.Size

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

Compute the desired size of the UniformGrid by measuring all of the children with a constraint equal to a cell's portion of the given constraint. The maximum child width and maximum child height are tracked, and then the desired size is computed by multiplying these maximums by the row and column count.
protected MeasureOverride ( Size constraint ) : Size
constraint Windows.Foundation.Size The size constraint.
Результат Windows.Foundation.Size

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

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

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

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

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

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

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

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

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