New to Telerik UI for WPFStart a free 30-day trial

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

Definition

Constructors

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

C#
protected PopupGalleryBase()

Properties

BuiltInItems

NamedObjects<T>

Gets the built in items.

C#
protected abstract NamedObjects<T> BuiltInItems { get; }
Property Value:

The built in items.

Gets the message to confirm delete.

C#
protected abstract string ConfirmDeleteMessage { get; }
Property Value:

The message to confirm delete.

Gets or sets the current item.

C#
protected abstract T CurrentItem { get; set; }
Property Value:

The current item.

CustomItems

NamedObjects<T>

Gets the custom items.

C#
protected abstract NamedObjects<T> CustomItems { get; }
Property Value:

The custom items.

Gets or sets the delete command.

C#
public ICommand DeleteCommand { get; set; }
Property Value:

The delete command.

Gets or sets the edit command.

C#
public ICommand EditCommand { get; set; }
Property Value:

The edit command.

Methods

Gets a ListBox item from a gallery item.

C#
protected abstract RadListBoxItem GalleryItemContentToListBoxItem(T scheme)
Parameters:schemeT

The scheme.

Returns:

RadListBoxItem

The ListBox item.

Initializes this instance.

C#
protected void Initialize()

Gets a gallery item from a ListBox item.

C#
protected abstract T ListBoxItemToGalleryItemContent(RadListBoxItem item)
Parameters:itemRadListBoxItem

The list box item item.

Returns:

T

The gallery item.

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

C#
public override void OnApplyTemplate()

Called when RadSpreadsheet is changed.

C#
protected override void OnRadSpreadsheetChanged(RadSpreadsheet oldEditor, RadSpreadsheet newEditor)
Parameters:oldEditorRadSpreadsheet

The old editor.

newEditorRadSpreadsheet

The new editor.

Overrides: PopupGalleryBase.OnRadSpreadsheetChanged(RadSpreadsheet, RadSpreadsheet)

Shows the edit item dialog.

C#
protected abstract void ShowEditItemDialog(GalleryContentItem<T> contentItem)
Parameters:contentItemGalleryContentItem<T>

The content item.

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

C#
protected void ThemesManagerCurrentItemChanged()

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged