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
显示文件 Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Protected Properties

Property Type Description
BasePath string

Public Methods

Method 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 method

public CreateView ( ) : IButtonView
return IButtonView

GetCurrentImage() public method

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.
return string

Preload() public method

Preloads the images for the button.
public Preload ( ) : void
return void

Property Details

BasePath protected_oe property

Gets or sets the base path that images are stored within.
protected string BasePath
return string