C# Class RateBar.RateBase

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

Méthodes publiques

Свойство 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

Свойство Type Description
CoerceMaximumRate object
IsValidDoubleValue bool
OnCaptionChanged void
OnMaximumRateChanged void
OnMinimumRateChanged void
OnRateChanged void

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

OnMaximumRateChanged() protected méthode

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.
Résultat void

OnMinimumRateChanged() protected méthode

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

OnRateChanged() protected méthode

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

RateBase() protected méthode

Initializes a new instance of the RateBase class.
protected RateBase ( ) : System
Résultat System

Rescale() protected méthode

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
Résultat void

Property Details

CaptionChangedEvent public_oe static_oe property

Identifies the CaptionChanged routed event.
public static RoutedEvent,System.Windows CaptionChangedEvent
Résultat System.Windows.RoutedEvent

CaptionProperty public_oe static_oe property

Identifies the Caption dependency property.
public static DependencyProperty,System.Windows CaptionProperty
Résultat System.Windows.DependencyProperty

MaximumRateProperty public_oe static_oe property

Identifies the RateMaximumProperty dependency property.
public static DependencyProperty,System.Windows MaximumRateProperty
Résultat System.Windows.DependencyProperty

MinimumRateProperty public_oe static_oe property

Identifies the RateMinimumProperty dependency property.
public static DependencyProperty,System.Windows MinimumRateProperty
Résultat System.Windows.DependencyProperty

RateChangedEvent public_oe static_oe property

Identifies the RateChanged routed event.
public static RoutedEvent,System.Windows RateChangedEvent
Résultat System.Windows.RoutedEvent

RateProperty public_oe static_oe property

Identifies the Rate dependency property.
public static DependencyProperty,System.Windows RateProperty
Résultat System.Windows.DependencyProperty