C# Класс 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.
Наследование: ButtonBase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
BasePath string

Открытые методы

Метод Описание
CreateView ( ) : IButtonView
GetCurrentImage ( ButtonState state, bool isFocused ) : string

Gets the current image.

Preload ( ) : void

Preloads the images for the button.

Описание методов

CreateView() публичный Метод

public CreateView ( ) : IButtonView
Результат IButtonView

GetCurrentImage() публичный Метод

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.
Результат string

Preload() публичный Метод

Preloads the images for the button.
public Preload ( ) : void
Результат void

Описание свойств

BasePath защищенное свойство

Gets or sets the base path that images are stored within.
protected string BasePath
Результат string