Class
PopupGalleryBase<T>

Abstract class providing methods and properties for using Popup Gallery containing items of type T.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Type Parameters:

T

The type T of gallery items.

Syntax:

cs-api-definition
public abstract class PopupGalleryBase<T> : PopupGalleryBase, INotifyPropertyChanged where T : NamedObjectBase

Inheritance: objectControlBasePopupGalleryBasePopupGalleryBase<T>

Derived Classes: ColorGalleryFontGalleryThemeGallery

Implements: INotifyPropertyChanged

Inherited Members PopupGalleryBase.PopupContentWidthPropertyPopupGalleryBase.IsParentDropDownOpenedPropertyPopupGalleryBase.RadSpreadsheetPropertyPopupGalleryBase.GalleryHeaderItemStylePropertyPopupGalleryBase.GalleryContentItemStylePropertyPopupGalleryBase.PopupContentWidthPopupGalleryBase.IsParentDropDownOpenedPopupGalleryBase.RadSpreadsheetPopupGalleryBase.GalleryHeaderItemStylePopupGalleryBase.GalleryContentItemStyleControlBase.GetTemplateChild<T>(string)ControlBase.GetRequiredTemplateChild<T>(string, bool)

Constructors

PopupGalleryBase()

Initializes a new instance of the PopupGalleryBase<T> class.

Declaration

cs-api-definition
protected PopupGalleryBase()

Properties

BuiltInItems

Gets the built in items.

Declaration

cs-api-definition
protected abstract NamedObjects<T> BuiltInItems { get; }

Property Value

NamedObjects<T>

The built in items.

ConfirmDeleteMessage

Gets the message to confirm delete.

Declaration

cs-api-definition
protected abstract string ConfirmDeleteMessage { get; }

Property Value

string

The message to confirm delete.

CurrentItem

Gets or sets the current item.

Declaration

cs-api-definition
protected abstract T CurrentItem { get; set; }

Property Value

T

The current item.

CustomItems

Gets the custom items.

Declaration

cs-api-definition
protected abstract NamedObjects<T> CustomItems { get; }

Property Value

NamedObjects<T>

The custom items.

DeleteCommand

Gets or sets the delete command.

Declaration

cs-api-definition
public ICommand DeleteCommand { get; set; }

Property Value

ICommand

The delete command.

EditCommand

Gets or sets the edit command.

Declaration

cs-api-definition
public ICommand EditCommand { get; set; }

Property Value

ICommand

The edit command.

Methods

GalleryItemContentToListBoxItem(T)

Gets a ListBox item from a gallery item.

Declaration

cs-api-definition
protected abstract RadListBoxItem GalleryItemContentToListBoxItem(T scheme)

Parameters

scheme

T

The scheme.

Returns

RadListBoxItem

The ListBox item.

Initialize()

Initializes this instance.

Declaration

cs-api-definition
protected void Initialize()

ListBoxItemToGalleryItemContent(RadListBoxItem)

Gets a gallery item from a ListBox item.

Declaration

cs-api-definition
protected abstract T ListBoxItemToGalleryItemContent(RadListBoxItem item)

Parameters

item

RadListBoxItem

The list box item item.

Returns

T

The gallery item.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnRadSpreadsheetChanged(RadSpreadsheet, RadSpreadsheet)

Called when RadSpreadsheet is changed.

Declaration

cs-api-definition
protected override void OnRadSpreadsheetChanged(RadSpreadsheet oldEditor, RadSpreadsheet newEditor)

Parameters

oldEditor

RadSpreadsheet

The old editor.

newEditor

RadSpreadsheet

The new editor.

Overrides PopupGalleryBase.OnRadSpreadsheetChanged(RadSpreadsheet, RadSpreadsheet)

ShowEditItemDialog(GalleryContentItem<T>)

Shows the edit item dialog.

Declaration

cs-api-definition
protected abstract void ShowEditItemDialog(GalleryContentItem<T> contentItem)

Parameters

contentItem

GalleryContentItem<T>

The content item.

ThemesManagerCurrentItemChanged()

Occurs when the current item of the themes manager has changed.

Declaration

cs-api-definition
protected void ThemesManagerCurrentItemChanged()

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged