Class
ThemeGallery

Provides methods and properties for using ThemeGallery.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class ThemeGallery : PopupGalleryBase<DocumentTheme>, INotifyPropertyChanged

Inheritance: objectControlBasePopupGalleryBasePopupGalleryBase<DocumentTheme>ThemeGallery

Implements: INotifyPropertyChanged

Inherited Members PopupGalleryBase<DocumentTheme>.ThemesManagerCurrentItemChanged()PopupGalleryBase<DocumentTheme>.Initialize()PopupGalleryBase<DocumentTheme>.OnApplyTemplate()PopupGalleryBase<DocumentTheme>.EditCommandPopupGalleryBase<DocumentTheme>.DeleteCommandPopupGalleryBase<DocumentTheme>.PropertyChangedPopupGalleryBase.PopupContentWidthPropertyPopupGalleryBase.IsParentDropDownOpenedPropertyPopupGalleryBase.RadSpreadsheetPropertyPopupGalleryBase.GalleryHeaderItemStylePropertyPopupGalleryBase.GalleryContentItemStylePropertyPopupGalleryBase.PopupContentWidthPopupGalleryBase.IsParentDropDownOpenedPopupGalleryBase.RadSpreadsheetPopupGalleryBase.GalleryHeaderItemStylePopupGalleryBase.GalleryContentItemStyleControlBase.GetTemplateChild<T>(string)ControlBase.GetRequiredTemplateChild<T>(string, bool)

Constructors

ThemeGallery()

Initializes a new instance of the ThemeGallery class.

Declaration

cs-api-definition
public ThemeGallery()

Properties

BuiltInItems

Gets the built in items.

Declaration

cs-api-definition
protected override NamedObjects<DocumentTheme> BuiltInItems { get; }

Property Value

NamedObjects<DocumentTheme>

The built in items.

Overrides PopupGalleryBase<DocumentTheme>.BuiltInItems

ConfirmDeleteMessage

Gets the message to confirm delete.

Declaration

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

Property Value

string

The message to confirm delete.

Overrides PopupGalleryBase<DocumentTheme>.ConfirmDeleteMessage

CurrentItem

Gets or sets the current item.

Declaration

cs-api-definition
protected override DocumentTheme CurrentItem { get; set; }

Property Value

DocumentTheme

The current item.

Overrides PopupGalleryBase<DocumentTheme>.CurrentItem

CustomItems

Gets the custom items.

Declaration

cs-api-definition
protected override NamedObjects<DocumentTheme> CustomItems { get; }

Property Value

NamedObjects<DocumentTheme>

The custom items.

Overrides PopupGalleryBase<DocumentTheme>.CustomItems

Methods

GalleryItemContentToListBoxItem(DocumentTheme)

Gets a ListBox item from a gallery item.

Declaration

cs-api-definition
protected override RadListBoxItem GalleryItemContentToListBoxItem(DocumentTheme scheme)

Parameters

scheme

DocumentTheme

The scheme.

Returns

RadListBoxItem

The ListBox item.

Overrides PopupGalleryBase<DocumentTheme>.GalleryItemContentToListBoxItem(DocumentTheme)

ListBoxItemToGalleryItemContent(RadListBoxItem)

Gets a gallery item from a ListBox item.

Declaration

cs-api-definition
protected override DocumentTheme ListBoxItemToGalleryItemContent(RadListBoxItem item)

Parameters

item

RadListBoxItem

The list box item.

Returns

DocumentTheme

The gallery item.

Overrides PopupGalleryBase<DocumentTheme>.ListBoxItemToGalleryItemContent(RadListBoxItem)

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

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<DocumentTheme>.OnRadSpreadsheetChanged(RadSpreadsheet, RadSpreadsheet)

ShowEditItemDialog(GalleryContentItem<DocumentTheme>)

Shows the edit item dialog.

Declaration

cs-api-definition
protected override void ShowEditItemDialog(GalleryContentItem<DocumentTheme> contentItem)

Parameters

contentItem

GalleryContentItem<DocumentTheme>

The content item.

Overrides PopupGalleryBase<DocumentTheme>.ShowEditItemDialog(GalleryContentItem<DocumentTheme>)