C# Class mCleaner.Helpers.Controls.VirtualToggleButton

Afficher le fichier Open project: MicroHealthLLC/mCleaner

Méthodes publiques

Свойство Type Description
IsCheckedProperty System.Windows.DependencyProperty
IsThreeStateProperty System.Windows.DependencyProperty
IsVirtualToggleButtonProperty System.Windows.DependencyProperty

Méthodes publiques

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

Private Methods

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

Method Details

GetIsChecked() public static méthode

Gets the IsChecked property. This dependency property indicates whether the toggle button is checked.
public static GetIsChecked ( DependencyObject d ) : Nullable
d System.Windows.DependencyObject
Résultat Nullable

GetIsThreeState() public static méthode

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

GetIsVirtualToggleButton() public static méthode

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

SetIsChecked() public static méthode

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

SetIsThreeState() public static méthode

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

SetIsVirtualToggleButton() public static méthode

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

Property Details

IsCheckedProperty public_oe static_oe property

IsChecked Attached Dependency Property
public static DependencyProperty,System.Windows IsCheckedProperty
Résultat System.Windows.DependencyProperty

IsThreeStateProperty public_oe static_oe property

IsThreeState Attached Dependency Property
public static DependencyProperty,System.Windows IsThreeStateProperty
Résultat System.Windows.DependencyProperty

IsVirtualToggleButtonProperty public_oe static_oe property

IsVirtualToggleButton Attached Dependency Property
public static DependencyProperty,System.Windows IsVirtualToggleButtonProperty
Résultat System.Windows.DependencyProperty