C# Class Open.Core.UI.Controls.VisualButton

Base class for buttons that are simple visuals.
Inheritance: System.Windows.Controls.Button
Exibir arquivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Properties

Property Type Description
BackgroundTemplateProperty System.Windows.DependencyProperty
DisabledOpacityProperty System.Windows.DependencyProperty
DownOffsetProperty System.Windows.DependencyProperty
OverOffsetProperty System.Windows.DependencyProperty

Public Methods

Method Description
OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnVisualStateChanged ( ) : void
VisualButton ( ) : System

Constructor.

Private Methods

Method Description
OnMouseDown ( ) : void
OnMouseEnter ( ) : void
OnMouseLeave ( ) : void
OnMouseUp ( ) : void
UpdateOffset ( ) : void
UpdateOpacity ( ) : void
UpdateVisualState ( ) : void

Method Details

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnVisualStateChanged() protected method

protected OnVisualStateChanged ( ) : void
return void

VisualButton() protected method

Constructor.
protected VisualButton ( ) : System
return System

Property Details

BackgroundTemplateProperty public_oe static_oe property

Gets or sets the template used to render the button background.
public static DependencyProperty,System.Windows BackgroundTemplateProperty
return System.Windows.DependencyProperty

DisabledOpacityProperty public_oe static_oe property

Gets or sets the opacity of the button when in a disabled state.
public static DependencyProperty,System.Windows DisabledOpacityProperty
return System.Windows.DependencyProperty

DownOffsetProperty public_oe static_oe property

Gets or sets the pixel offset to adjust the button by when the mouse is depressed.
public static DependencyProperty,System.Windows DownOffsetProperty
return System.Windows.DependencyProperty

OverOffsetProperty public_oe static_oe property

Gets or sets the pixel offset to adjust the button by when the mouse is over it.
public static DependencyProperty,System.Windows OverOffsetProperty
return System.Windows.DependencyProperty