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

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

Méthodes publiques

Свойство Type Description
BackgroundTemplateProperty System.Windows.DependencyProperty
DisabledOpacityProperty System.Windows.DependencyProperty
DownOffsetProperty System.Windows.DependencyProperty
OverOffsetProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
OnApplyTemplate ( ) : void

Méthodes protégées

Méthode Description
OnVisualStateChanged ( ) : void
VisualButton ( ) : System

Constructor.

Private Methods

Méthode Description
OnMouseDown ( ) : void
OnMouseEnter ( ) : void
OnMouseLeave ( ) : void
OnMouseUp ( ) : void
UpdateOffset ( ) : void
UpdateOpacity ( ) : void
UpdateVisualState ( ) : void

Method Details

OnApplyTemplate() public méthode

public OnApplyTemplate ( ) : void
Résultat void

OnVisualStateChanged() protected méthode

protected OnVisualStateChanged ( ) : void
Résultat void

VisualButton() protected méthode

Constructor.
protected VisualButton ( ) : System
Résultat 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
Résultat 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
Résultat 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
Résultat 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
Résultat System.Windows.DependencyProperty