C# Класс wpf_player.BusyIndicatorBehavior

Behaviour Class that implements the reaction of the animation visibility based on a busy state Dependency Property.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetAddMargins() публичный статический Метод

public static GetAddMargins ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Результат bool

GetBusyState() публичный статический Метод

public static GetBusyState ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Результат bool

GetDimBackground() публичный статический Метод

public static GetDimBackground ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Результат bool

GetDimTransitionDuration() публичный статический Метод

public static GetDimTransitionDuration ( DependencyObject obj ) : Duration
obj System.Windows.DependencyObject
Результат Duration

GetDimmerBrush() публичный статический Метод

public static GetDimmerBrush ( DependencyObject obj ) : System.Windows.Media.Brush
obj System.Windows.DependencyObject
Результат System.Windows.Media.Brush

GetDimmerOpacity() публичный статический Метод

public static GetDimmerOpacity ( DependencyObject obj ) : double
obj System.Windows.DependencyObject
Результат double

GetTargetVisual() публичный статический Метод

public static GetTargetVisual ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject
Результат UIElement

SetAddMargins() публичный статический Метод

public static SetAddMargins ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Результат void

SetBusyState() публичный статический Метод

public static SetBusyState ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Результат void

SetDimBackground() публичный статический Метод

public static SetDimBackground ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Результат void

SetDimTransitionDuration() публичный статический Метод

public static SetDimTransitionDuration ( DependencyObject obj, Duration value ) : void
obj System.Windows.DependencyObject
value Duration
Результат void

SetDimmerBrush() публичный статический Метод

public static SetDimmerBrush ( DependencyObject obj, System.Windows.Media.Brush value ) : void
obj System.Windows.DependencyObject
value System.Windows.Media.Brush
Результат void

SetDimmerOpacity() публичный статический Метод

public static SetDimmerOpacity ( DependencyObject obj, double value ) : void
obj System.Windows.DependencyObject
value double
Результат void

SetTargetVisual() публичный статический Метод

public static SetTargetVisual ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject
value UIElement
Результат void

Описание свойств

AddMarginsProperty публичное статическое свойство

public static DependencyProperty,System.Windows AddMarginsProperty
Результат System.Windows.DependencyProperty

BusyStateProperty публичное статическое свойство

public static DependencyProperty,System.Windows BusyStateProperty
Результат System.Windows.DependencyProperty

DimBackgroundProperty публичное статическое свойство

public static DependencyProperty,System.Windows DimBackgroundProperty
Результат System.Windows.DependencyProperty

DimTransitionDurationProperty публичное статическое свойство

public static DependencyProperty,System.Windows DimTransitionDurationProperty
Результат System.Windows.DependencyProperty

DimmerBrushProperty публичное статическое свойство

public static DependencyProperty,System.Windows DimmerBrushProperty
Результат System.Windows.DependencyProperty

DimmerOpacityProperty публичное статическое свойство

public static DependencyProperty,System.Windows DimmerOpacityProperty
Результат System.Windows.DependencyProperty

TargetVisualProperty публичное статическое свойство

public static DependencyProperty,System.Windows TargetVisualProperty
Результат System.Windows.DependencyProperty