C# Class wpf_player.BusyIndicatorBehavior

Behaviour Class that implements the reaction of the animation visibility based on a busy state Dependency Property.
Afficher le fichier Open project: zencoders/sambatyon

Méthodes publiques

Свойство Type Description
AddMarginsProperty System.Windows.DependencyProperty
BusyStateProperty System.Windows.DependencyProperty
DimBackgroundProperty System.Windows.DependencyProperty
DimTransitionDurationProperty System.Windows.DependencyProperty
DimmerBrushProperty System.Windows.DependencyProperty
DimmerOpacityProperty System.Windows.DependencyProperty
TargetVisualProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetAddMargins ( DependencyObject obj ) : bool

GetBusyState ( DependencyObject obj ) : bool

GetDimBackground ( DependencyObject obj ) : bool

GetDimTransitionDuration ( DependencyObject obj ) : Duration

GetDimmerBrush ( DependencyObject obj ) : System.Windows.Media.Brush

GetDimmerOpacity ( DependencyObject obj ) : double

GetTargetVisual ( DependencyObject obj ) : UIElement

SetAddMargins ( DependencyObject obj, bool value ) : void

SetBusyState ( DependencyObject obj, bool value ) : void

SetDimBackground ( DependencyObject obj, bool value ) : void

SetDimTransitionDuration ( DependencyObject obj, Duration value ) : void

SetDimmerBrush ( DependencyObject obj, System.Windows.Media.Brush value ) : void

SetDimmerOpacity ( DependencyObject obj, double value ) : void

SetTargetVisual ( DependencyObject obj, UIElement value ) : void

Private Methods

Méthode Description
OnBusyStateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

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

OnFadeOutAnimationCompleted ( DependencyObject d, System.Windows.Controls.Panel hostGrid, UIElement busyIndicator ) : void

OnPreProcessInput ( object sender, System.Windows.Input.PreProcessInputEventArgs e ) : void

Method Details

GetAddMargins() public static méthode

public static GetAddMargins ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

GetBusyState() public static méthode

public static GetBusyState ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

GetDimBackground() public static méthode

public static GetDimBackground ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

GetDimTransitionDuration() public static méthode

public static GetDimTransitionDuration ( DependencyObject obj ) : Duration
obj System.Windows.DependencyObject
Résultat Duration

GetDimmerBrush() public static méthode

public static GetDimmerBrush ( DependencyObject obj ) : System.Windows.Media.Brush
obj System.Windows.DependencyObject
Résultat System.Windows.Media.Brush

GetDimmerOpacity() public static méthode

public static GetDimmerOpacity ( DependencyObject obj ) : double
obj System.Windows.DependencyObject
Résultat double

GetTargetVisual() public static méthode

public static GetTargetVisual ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject
Résultat UIElement

SetAddMargins() public static méthode

public static SetAddMargins ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

SetBusyState() public static méthode

public static SetBusyState ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

SetDimBackground() public static méthode

public static SetDimBackground ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

SetDimTransitionDuration() public static méthode

public static SetDimTransitionDuration ( DependencyObject obj, Duration value ) : void
obj System.Windows.DependencyObject
value Duration
Résultat void

SetDimmerBrush() public static méthode

public static SetDimmerBrush ( DependencyObject obj, System.Windows.Media.Brush value ) : void
obj System.Windows.DependencyObject
value System.Windows.Media.Brush
Résultat void

SetDimmerOpacity() public static méthode

public static SetDimmerOpacity ( DependencyObject obj, double value ) : void
obj System.Windows.DependencyObject
value double
Résultat void

SetTargetVisual() public static méthode

public static SetTargetVisual ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject
value UIElement
Résultat void

Property Details

AddMarginsProperty public_oe static_oe property

public static DependencyProperty,System.Windows AddMarginsProperty
Résultat System.Windows.DependencyProperty

BusyStateProperty public_oe static_oe property

public static DependencyProperty,System.Windows BusyStateProperty
Résultat System.Windows.DependencyProperty

DimBackgroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows DimBackgroundProperty
Résultat System.Windows.DependencyProperty

DimTransitionDurationProperty public_oe static_oe property

public static DependencyProperty,System.Windows DimTransitionDurationProperty
Résultat System.Windows.DependencyProperty

DimmerBrushProperty public_oe static_oe property

public static DependencyProperty,System.Windows DimmerBrushProperty
Résultat System.Windows.DependencyProperty

DimmerOpacityProperty public_oe static_oe property

public static DependencyProperty,System.Windows DimmerOpacityProperty
Résultat System.Windows.DependencyProperty

TargetVisualProperty public_oe static_oe property

public static DependencyProperty,System.Windows TargetVisualProperty
Résultat System.Windows.DependencyProperty