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:
public abstract class PopupGalleryBase<T> : PopupGalleryBase, INotifyPropertyChanged where T : NamedObjectBase
Inheritance: objectControlBasePopupGalleryBasePopupGalleryBase<T>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the PopupGalleryBase<T> class.
protected PopupGalleryBase()
Properties
BuiltInItems
NamedObjects<T>
Gets the built in items.
protected abstract NamedObjects<T> BuiltInItems { get; }
The built in items.
Gets the message to confirm delete.
protected abstract string ConfirmDeleteMessage { get; }
The message to confirm delete.
Gets or sets the current item.
protected abstract T CurrentItem { get; set; }
The current item.
CustomItems
NamedObjects<T>
Gets the custom items.
protected abstract NamedObjects<T> CustomItems { get; }
The custom items.
Gets or sets the delete command.
public ICommand DeleteCommand { get; set; }
The delete command.
Gets or sets the edit command.
public ICommand EditCommand { get; set; }
The edit command.
Methods
Gets a ListBox item from a gallery item.
protected abstract RadListBoxItem GalleryItemContentToListBoxItem(T scheme)
The scheme.
Returns:The ListBox item.
Initializes this instance.
protected void Initialize()
Gets a gallery item from a ListBox item.
protected abstract T ListBoxItemToGalleryItemContent(RadListBoxItem item)
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 .
public override void OnApplyTemplate()
Called when RadSpreadsheet is changed.
protected override void OnRadSpreadsheetChanged(RadSpreadsheet oldEditor, RadSpreadsheet newEditor)
The old editor.
newEditorRadSpreadsheetThe new editor.
Overrides:
Shows the edit item dialog.
protected abstract void ShowEditItemDialog(GalleryContentItem<T> contentItem)
The content item.
Occurs when the current item of the themes manager has changed.
protected void ThemesManagerCurrentItemChanged()
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: