C# Class AerialForWindowsTester.AspectRatioLayoutDecorator

Inheritance: System.Windows.Controls.Decorator
Datei anzeigen Open project: thoemmi/AerialForWindows

Public Properties

Property Type Description
AspectRatioProperty System.Windows.DependencyProperty

Public Methods

Method Description
SizeToRatio ( Size size, bool expand ) : Size

Protected Methods

Method Description
ArrangeOverride ( Size arrangeSize ) : Size
MeasureOverride ( Size constraint ) : Size

Private Methods

Method Description
ValidateAspectRatio ( object value ) : bool

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size arrangeSize ) : Size
arrangeSize System.Windows.Size
return System.Windows.Size

MeasureOverride() protected method

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
return System.Windows.Size

SizeToRatio() public method

public SizeToRatio ( Size size, bool expand ) : Size
size System.Windows.Size
expand bool
return System.Windows.Size

Property Details

AspectRatioProperty public_oe static_oe property

public static DependencyProperty,System.Windows AspectRatioProperty
return System.Windows.DependencyProperty