C# Class Open.Core.Controls.Buttons.ImageButtonBase

A base class for a button made up of images for each state.
Used the derived [ImageButton] where in the consuming you code you are specifying the set of images to use. [ImageButtonBase] class is provided to that specific image-buttons can be cleanly provided without exposing the API for assigning image URL's.
Inheritance: ButtonBase
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Protected Properties

Свойство Type Description
BasePath string

Méthodes publiques

Méthode Description
CreateView ( ) : IButtonView
GetCurrentImage ( ButtonState state, bool isFocused ) : string

Gets the current image.

Preload ( ) : void

Preloads the images for the button.

Method Details

CreateView() public méthode

public CreateView ( ) : IButtonView
Résultat IButtonView

GetCurrentImage() public méthode

Gets the current image.
public GetCurrentImage ( ButtonState state, bool isFocused ) : string
state ButtonState The state of the button.
isFocused bool Flag indicating if the button currently has focus.
Résultat string

Preload() public méthode

Preloads the images for the button.
public Preload ( ) : void
Résultat void

Property Details

BasePath protected_oe property

Gets or sets the base path that images are stored within.
protected string BasePath
Résultat string