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
파일 보기 프로젝트 열기: Esri/arcgis-portalviewer-dotnet

공개 프로퍼티들

프로퍼티 타입 설명
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