C# Class RateBar.RateBase

Represents a Progress Bar that also reports back a Rate
Inheritance: System.Windows.Controls.Primitives.RangeBase
Mostra file Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
CaptionChangedEvent System.Windows.RoutedEvent
CaptionProperty System.Windows.DependencyProperty
MaximumRateProperty System.Windows.DependencyProperty
MinimumRateProperty System.Windows.DependencyProperty
RateChangedEvent System.Windows.RoutedEvent
RateProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CoerceMaximumRate object
IsValidDoubleValue bool
OnCaptionChanged void
OnMaximumRateChanged void
OnMinimumRateChanged void
OnRateChanged void

Protected Methods

Method Description
OnCaptionChanged ( String oldValue, String newValue ) : void

Called when caption changes.

OnMaximumRateChanged ( double oldMaximum, double newMaximum ) : void

Called when the P:System.Windows.Controls.Primitives.RangeBase.Maximum property changes.

OnMinimumRateChanged ( double oldMinimum, double newMinimum ) : void

Called when [minimum rate changed].

OnRateChanged ( double oldValue, double newValue ) : void

Called when rate changes.

RateBase ( ) : System

Initializes a new instance of the RateBase class.

Rescale ( Double rate ) : void

Provide a change for the RateMaximum to be modified for re-scaling any graphs etc.

Private Methods

Method Description
CoerceMaximumRate ( DependencyObject d, object value ) : object

Coerces the maximum rate.

IsValidDoubleValue ( object value ) : bool

Determines whether the value is a valid double value.

OnCaptionChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when the caption changes.

OnMaximumRateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when maximum rate changes.

OnMinimumRateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when minimum rate changes.

OnRateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when the rate changes.

Method Details

OnCaptionChanged() protected method

Called when caption changes.
protected OnCaptionChanged ( String oldValue, String newValue ) : void
oldValue String The old value.
newValue String The new value.
return void

OnMaximumRateChanged() protected method

Called when the P:System.Windows.Controls.Primitives.RangeBase.Maximum property changes.
protected OnMaximumRateChanged ( double oldMaximum, double newMaximum ) : void
oldMaximum double Old value of the property.
newMaximum double New value of the property.
return void

OnMinimumRateChanged() protected method

Called when [minimum rate changed].
protected OnMinimumRateChanged ( double oldMinimum, double newMinimum ) : void
oldMinimum double The old minimum.
newMinimum double The new minimum.
return void

OnRateChanged() protected method

Called when rate changes.
protected OnRateChanged ( double oldValue, double newValue ) : void
oldValue double The old value.
newValue double The new value.
return void

RateBase() protected method

Initializes a new instance of the RateBase class.
protected RateBase ( ) : System
return System

Rescale() protected method

Provide a change for the RateMaximum to be modified for re-scaling any graphs etc.
protected Rescale ( Double rate ) : void
rate Double The current rate
return void

Property Details

CaptionChangedEvent public_oe static_oe property

Identifies the CaptionChanged routed event.
public static RoutedEvent,System.Windows CaptionChangedEvent
return System.Windows.RoutedEvent

CaptionProperty public_oe static_oe property

Identifies the Caption dependency property.
public static DependencyProperty,System.Windows CaptionProperty
return System.Windows.DependencyProperty

MaximumRateProperty public_oe static_oe property

Identifies the RateMaximumProperty dependency property.
public static DependencyProperty,System.Windows MaximumRateProperty
return System.Windows.DependencyProperty

MinimumRateProperty public_oe static_oe property

Identifies the RateMinimumProperty dependency property.
public static DependencyProperty,System.Windows MinimumRateProperty
return System.Windows.DependencyProperty

RateChangedEvent public_oe static_oe property

Identifies the RateChanged routed event.
public static RoutedEvent,System.Windows RateChangedEvent
return System.Windows.RoutedEvent

RateProperty public_oe static_oe property

Identifies the Rate dependency property.
public static DependencyProperty,System.Windows RateProperty
return System.Windows.DependencyProperty