C# Class Gu.Wpf.PropertyGrid.UnitRows.AreaRow

Inheritance: UnitRowGeneric, IQuantityFormatter
Show file Open project: JohanLarsson/Gu.Wpf.PropertyGrid

Public Properties

Property Type Description
DefaultUnit AreaUnit
MaxValueProperty System.Windows.DependencyProperty
MinValueProperty DependencyProperty
UnitProperty DependencyProperty
ValueProperty DependencyProperty

Protected Methods

Method Description
CreateSuffix ( SymbolFormat format ) : string
CreateSuffix ( SymbolFormat format, AreaUnit unit ) : string
OnMaxValueChanged ( Area oldValue, Area newValue ) : void
OnMaxValueChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnMinValueChanged ( Area oldValue, Area newValue ) : void
OnMinValueChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnScalarMaxValueChanged ( double newValue ) : void
OnScalarMinValueChanged ( double newValue ) : void
OnScalarValueChanged ( double newValue ) : void
OnUnitChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnValueChanged ( object oldValue, object newValue ) : void
SetQuantityValue ( DependencyProperty property, double value ) : void
SetScalarValue ( DependencyProperty property, Area quantity ) : void
UpdateIsDirty ( ) : void

Private Methods

Method Description
AreaRow ( ) : System.Windows
IQuantityFormatter ( IQuantity quantity ) : string

Method Details

CreateSuffix() protected method

protected CreateSuffix ( SymbolFormat format ) : string
format SymbolFormat
return string

CreateSuffix() protected static method

protected static CreateSuffix ( SymbolFormat format, AreaUnit unit ) : string
format SymbolFormat
unit AreaUnit
return string

OnMaxValueChanged() protected method

protected OnMaxValueChanged ( Area oldValue, Area newValue ) : void
oldValue Area
newValue Area
return void

OnMaxValueChanged() protected static method

protected static OnMaxValueChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

OnMinValueChanged() protected method

protected OnMinValueChanged ( Area oldValue, Area newValue ) : void
oldValue Area
newValue Area
return void

OnMinValueChanged() protected static method

protected static OnMinValueChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

OnScalarMaxValueChanged() protected method

protected OnScalarMaxValueChanged ( double newValue ) : void
newValue double
return void

OnScalarMinValueChanged() protected method

protected OnScalarMinValueChanged ( double newValue ) : void
newValue double
return void

OnScalarValueChanged() protected method

protected OnScalarValueChanged ( double newValue ) : void
newValue double
return void

OnUnitChanged() protected static method

protected static OnUnitChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

OnValueChanged() protected method

protected OnValueChanged ( object oldValue, object newValue ) : void
oldValue object
newValue object
return void

SetQuantityValue() protected method

protected SetQuantityValue ( DependencyProperty property, double value ) : void
property DependencyProperty
value double
return void

SetScalarValue() protected method

protected SetScalarValue ( DependencyProperty property, Area quantity ) : void
property DependencyProperty
quantity Area
return void

UpdateIsDirty() protected method

protected UpdateIsDirty ( ) : void
return void

Property Details

DefaultUnit public static property

public static AreaUnit DefaultUnit
return AreaUnit

MaxValueProperty public static property

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

MinValueProperty public static property

public static DependencyProperty MinValueProperty
return DependencyProperty

UnitProperty public static property

public static DependencyProperty UnitProperty
return DependencyProperty

ValueProperty public static property

public static DependencyProperty ValueProperty
return DependencyProperty