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
파일 보기 프로젝트 열기: rickapps/UWP-UniformGrid-Control

공개 프로퍼티들

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