C# 클래스 Microsoft.Silverlight.Testing.Client.LayoutTransformer

상속: System.Windows.Controls.ContentControl
파일 보기 프로젝트 열기: garyjohnson/wpnest

공개 프로퍼티들

프로퍼티 타입 설명
LayoutTransformProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
ComputeLargestTransformedSize System.Windows.Size
DiagnosticWriteLine void
GetTransformMatrix Matrix
IsSizeSmaller bool
LayoutTransformChanged void
MatrixHasInverse bool
MatrixMultiply Matrix
ProcessTransform void
RectTransform System.Windows.Rect
RoundMatrix Matrix

공개 메소드들

메소드 설명
ApplyLayoutTransform ( ) : void

Applies the layout transform on the LayoutTransformer control content.

Only used in advanced scenarios (like animating the LayoutTransform). Should be used to notify the LayoutTransformer control that some aspect of its Transform property has changed.

LayoutTransformer ( ) : System

Initializes a new instance of the LayoutTransformer class.

OnApplyTemplate ( ) : void

Builds the visual tree for the LayoutTransformer control when a new template is applied.

보호된 메소드들

메소드 설명
ArrangeOverride ( Size finalSize ) : Size

Provides the behavior for the "Arrange" pass of layout.

Using the WPF paramater name finalSize instead of Silverlight's finalSize for clarity

MeasureOverride ( Size availableSize ) : Size

Provides the behavior for the "Measure" pass of layout.

비공개 메소드들

메소드 설명
ComputeLargestTransformedSize ( Size arrangeBounds ) : Size
DiagnosticWriteLine ( string message ) : void
GetTransformMatrix ( Transform transform ) : Matrix

Walks the Transform(Group) and returns the corresponding Matrix.

IsSizeSmaller ( Size a, Size b ) : bool

Returns true if Size a is smaller than Size b in either dimension.

LayoutTransformChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Transform DependencyProperty.

MatrixHasInverse ( Matrix matrix ) : bool

Implements WPF's Matrix.HasInverse on Silverlight.

MatrixMultiply ( Matrix matrix1, Matrix matrix2 ) : Matrix

Implements WPF's Matrix.Multiply on Silverlight.

ProcessTransform ( Transform transform ) : void

Processes the Transform to determine the corresponding Matrix.

RectTransform ( Rect rect, Matrix matrix ) : Rect

Implements WPF's Rect.Transform on Silverlight.

RoundMatrix ( Matrix matrix, int decimals ) : Matrix

Rounds the non-offset elements of a Matrix to avoid issues due to floating point imprecision.

메소드 상세

ApplyLayoutTransform() 공개 메소드

Applies the layout transform on the LayoutTransformer control content.
Only used in advanced scenarios (like animating the LayoutTransform). Should be used to notify the LayoutTransformer control that some aspect of its Transform property has changed.
public ApplyLayoutTransform ( ) : void
리턴 void

ArrangeOverride() 보호된 메소드

Provides the behavior for the "Arrange" pass of layout.
Using the WPF paramater name finalSize instead of Silverlight's finalSize for clarity
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size The final area within the parent that this element should use to arrange itself and its children.
리턴 System.Windows.Size

LayoutTransformer() 공개 메소드

Initializes a new instance of the LayoutTransformer class.
public LayoutTransformer ( ) : System
리턴 System

MeasureOverride() 보호된 메소드

Provides the behavior for the "Measure" pass of layout.
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size The available size that this element can give to child elements.
리턴 System.Windows.Size

OnApplyTemplate() 공개 메소드

Builds the visual tree for the LayoutTransformer control when a new template is applied.
public OnApplyTemplate ( ) : void
리턴 void

프로퍼티 상세

LayoutTransformProperty 공개적으로 정적으로 프로퍼티

Identifies the LayoutTransform DependencyProperty.
public static DependencyProperty,System.Windows LayoutTransformProperty
리턴 System.Windows.DependencyProperty