C# Class WinRTXamlToolkit.Controls.Extensions.ButtonStateEventBehavior

Handles ButtonStateEventBehavior.
Inheritance: Windows.UI.Xaml.FrameworkElement
ファイルを表示 Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
DownCommandParameterProperty Windows.UI.Xaml.DependencyProperty
DownCommandProperty Windows.UI.Xaml.DependencyProperty
IsPressedProperty Windows.UI.Xaml.DependencyProperty
UpCommandParameterProperty Windows.UI.Xaml.DependencyProperty
UpCommandProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
Attach ( ButtonBase button ) : void

Attaches to the specified button.

Detach ( ) : void

Detaches this instance.

Protected Methods

Method Description
OnDown ( ) : void

Called when the button is pressed.

OnUp ( ) : void

Called when the button is released.

Private Methods

Method Description
OnDownInternal ( ) : void
OnIsPressedChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsPressed property.

OnIsPressedChanged ( bool oldIsPressed, bool newIsPressed ) : void

Provides derived classes an opportunity to handle changes to the IsPressed property.

OnUpInternal ( ) : void

Method Details

Attach() public method

Attaches to the specified button.
public Attach ( ButtonBase button ) : void
button Windows.UI.Xaml.Controls.Primitives.ButtonBase The button.
return void

Detach() public method

Detaches this instance.
public Detach ( ) : void
return void

OnDown() protected method

Called when the button is pressed.
protected OnDown ( ) : void
return void

OnUp() protected method

Called when the button is released.
protected OnUp ( ) : void
return void

Property Details

DownCommandParameterProperty public_oe static_oe property

DownCommandParameter Dependency Property
public static DependencyProperty,Windows.UI.Xaml DownCommandParameterProperty
return Windows.UI.Xaml.DependencyProperty

DownCommandProperty public_oe static_oe property

DownCommand Dependency Property
public static DependencyProperty,Windows.UI.Xaml DownCommandProperty
return Windows.UI.Xaml.DependencyProperty

IsPressedProperty public_oe static_oe property

IsPressed Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsPressedProperty
return Windows.UI.Xaml.DependencyProperty

UpCommandParameterProperty public_oe static_oe property

UpCommandParameter Dependency Property
public static DependencyProperty,Windows.UI.Xaml UpCommandParameterProperty
return Windows.UI.Xaml.DependencyProperty

UpCommandProperty public_oe static_oe property

UpCommand Dependency Property
public static DependencyProperty,Windows.UI.Xaml UpCommandProperty
return Windows.UI.Xaml.DependencyProperty