C# Класс mCleaner.Helpers.Controls.VirtualToggleButton

Показать файл Открыть проект

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

Свойство Тип Описание
IsCheckedProperty System.Windows.DependencyProperty
IsThreeStateProperty System.Windows.DependencyProperty
IsVirtualToggleButtonProperty System.Windows.DependencyProperty

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

Метод Описание
GetIsChecked ( DependencyObject d ) : Nullable

Gets the IsChecked property. This dependency property indicates whether the toggle button is checked.

GetIsThreeState ( DependencyObject d ) : bool

Gets the IsThreeState property. This dependency property indicates whether the control supports two or three states. IsChecked can be set to null as a third state when IsThreeState is true.

GetIsVirtualToggleButton ( DependencyObject d ) : bool

Gets the IsVirtualToggleButton property. This dependency property indicates whether the object to which the property is attached is treated as a VirtualToggleButton. If true, the object will respond to keyboard and mouse input the same way a ToggleButton would.

SetIsChecked ( DependencyObject d, Nullable value ) : void

Sets the IsChecked property. This dependency property indicates whether the toggle button is checked.

SetIsThreeState ( DependencyObject d, bool value ) : void

Sets the IsThreeState property. This dependency property indicates whether the control supports two or three states. IsChecked can be set to null as a third state when IsThreeState is true.

SetIsVirtualToggleButton ( DependencyObject d, bool value ) : void

Sets the IsVirtualToggleButton property. This dependency property indicates whether the object to which the property is attached is treated as a VirtualToggleButton. If true, the object will respond to keyboard and mouse input the same way a ToggleButton would.

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

Метод Описание
OnIsCheckedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsChecked property.

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

Handles changes to the IsVirtualToggleButton property.

OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
RaiseCheckedEvent ( UIElement target ) : RoutedEventArgs

A static helper method to raise the Checked event on a target element.

RaiseEvent ( DependencyObject target, RoutedEventArgs args ) : void
RaiseIndeterminateEvent ( UIElement target ) : RoutedEventArgs

A static helper method to raise the Indeterminate event on a target element.

RaiseUncheckedEvent ( UIElement target ) : RoutedEventArgs

A static helper method to raise the Unchecked event on a target element.

UpdateIsChecked ( DependencyObject d ) : void

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

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

Gets the IsChecked property. This dependency property indicates whether the toggle button is checked.
public static GetIsChecked ( DependencyObject d ) : Nullable
d System.Windows.DependencyObject
Результат Nullable

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

Gets the IsThreeState property. This dependency property indicates whether the control supports two or three states. IsChecked can be set to null as a third state when IsThreeState is true.
public static GetIsThreeState ( DependencyObject d ) : bool
d System.Windows.DependencyObject
Результат bool

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

Gets the IsVirtualToggleButton property. This dependency property indicates whether the object to which the property is attached is treated as a VirtualToggleButton. If true, the object will respond to keyboard and mouse input the same way a ToggleButton would.
public static GetIsVirtualToggleButton ( DependencyObject d ) : bool
d System.Windows.DependencyObject
Результат bool

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

Sets the IsChecked property. This dependency property indicates whether the toggle button is checked.
public static SetIsChecked ( DependencyObject d, Nullable value ) : void
d System.Windows.DependencyObject
value Nullable
Результат void

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

Sets the IsThreeState property. This dependency property indicates whether the control supports two or three states. IsChecked can be set to null as a third state when IsThreeState is true.
public static SetIsThreeState ( DependencyObject d, bool value ) : void
d System.Windows.DependencyObject
value bool
Результат void

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

Sets the IsVirtualToggleButton property. This dependency property indicates whether the object to which the property is attached is treated as a VirtualToggleButton. If true, the object will respond to keyboard and mouse input the same way a ToggleButton would.
public static SetIsVirtualToggleButton ( DependencyObject d, bool value ) : void
d System.Windows.DependencyObject
value bool
Результат void

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

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

IsChecked Attached Dependency Property
public static DependencyProperty,System.Windows IsCheckedProperty
Результат System.Windows.DependencyProperty

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

IsThreeState Attached Dependency Property
public static DependencyProperty,System.Windows IsThreeStateProperty
Результат System.Windows.DependencyProperty

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

IsVirtualToggleButton Attached Dependency Property
public static DependencyProperty,System.Windows IsVirtualToggleButtonProperty
Результат System.Windows.DependencyProperty