C# Class ArcGISPortalViewer.Controls.Primitives.UniformGrid

A UniformGrid implementation for Silverlight that arranges children in a grid with all equal cell sizes.
Inheritance: Windows.UI.Xaml.Controls.Panel
Afficher le fichier Open project: Esri/arcgis-portalviewer-dotnet

Méthodes publiques

Свойство Type Description
ColumnsProperty Windows.UI.Xaml.DependencyProperty
FirstColumnProperty Windows.UI.Xaml.DependencyProperty
RowsProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Свойство Type Description
OnIntegerDependencyPropertyChanged void
UpdateComputedValues void

Méthodes publiques

Méthode Description
UniformGrid ( ) : System

Initializes a new instance of UniformGrid.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

ArrangeOverride() protected méthode

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.
Résultat Windows.Foundation.Size

MeasureOverride() protected méthode

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.
Résultat Windows.Foundation.Size

UniformGrid() public méthode

Initializes a new instance of UniformGrid.
public UniformGrid ( ) : System
Résultat System

Property Details

ColumnsProperty public_oe static_oe property

DependencyProperty for the Columns property.
public static DependencyProperty,Windows.UI.Xaml ColumnsProperty
Résultat Windows.UI.Xaml.DependencyProperty

FirstColumnProperty public_oe static_oe property

The FirstColumnProperty dependency property.
public static DependencyProperty,Windows.UI.Xaml FirstColumnProperty
Résultat Windows.UI.Xaml.DependencyProperty

RowsProperty public_oe static_oe property

The Rows DependencyProperty.
public static DependencyProperty,Windows.UI.Xaml RowsProperty
Résultat Windows.UI.Xaml.DependencyProperty