C# Class wpf_player.BusyIndicatorBehavior

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

Public Properties

Property 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

Public Methods

Method 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

Method 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 method

public static GetAddMargins ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

GetBusyState() public static method

public static GetBusyState ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

GetDimBackground() public static method

public static GetDimBackground ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

GetDimTransitionDuration() public static method

public static GetDimTransitionDuration ( DependencyObject obj ) : Duration
obj System.Windows.DependencyObject
return Duration

GetDimmerBrush() public static method

public static GetDimmerBrush ( DependencyObject obj ) : System.Windows.Media.Brush
obj System.Windows.DependencyObject
return System.Windows.Media.Brush

GetDimmerOpacity() public static method

public static GetDimmerOpacity ( DependencyObject obj ) : double
obj System.Windows.DependencyObject
return double

GetTargetVisual() public static method

public static GetTargetVisual ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject
return UIElement

SetAddMargins() public static method

public static SetAddMargins ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

SetBusyState() public static method

public static SetBusyState ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

SetDimBackground() public static method

public static SetDimBackground ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

SetDimTransitionDuration() public static method

public static SetDimTransitionDuration ( DependencyObject obj, Duration value ) : void
obj System.Windows.DependencyObject
value Duration
return void

SetDimmerBrush() public static method

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

SetDimmerOpacity() public static method

public static SetDimmerOpacity ( DependencyObject obj, double value ) : void
obj System.Windows.DependencyObject
value double
return void

SetTargetVisual() public static method

public static SetTargetVisual ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject
value UIElement
return void

Property Details

AddMarginsProperty public_oe static_oe property

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

BusyStateProperty public_oe static_oe property

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

DimBackgroundProperty public_oe static_oe property

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

DimTransitionDurationProperty public_oe static_oe property

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

DimmerBrushProperty public_oe static_oe property

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

DimmerOpacityProperty public_oe static_oe property

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

TargetVisualProperty public_oe static_oe property

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