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

Represents base for the context of the create new theme colors and fonts dialogs.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Type Parameters:

T

Syntax:

C#
public abstract class CreateNewThemeItemDialogContextBase<T> : RadSpreadsheetDialogContext where T : NamedObjectBase

Inheritance: objectRadSpreadsheetDialogContextCreateNewThemeItemDialogContextBase<T>

Derived Classes: CreateNewThemeColorsDialogContextCreateNewThemeFontsDialogContext

Inherited Members RadSpreadsheetDialogContext.RadSpreadsheetRadSpreadsheetDialogContext.Owner

Constructors

Initializes a new instance of the class.

C#
protected CreateNewThemeItemDialogContextBase(RadSpreadsheet radSpreadsheet, T schemeToEdit = default)
Parameters:radSpreadsheetRadSpreadsheet

The RAD spreadsheet.

schemeToEditT

The scheme to edit.

Properties

CustomSchemes

NamedObjects<T>

Gets the custom schemes.

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

The custom schemes.

Gets or sets the name of the original scheme.

C#
protected string OriginalSchemeName { get; set; }
Property Value:

The name of the original scheme.

Gets or sets the name of the scheme.

C#
public string SchemeName { get; set; }
Property Value:

The name of the scheme.

Gets the scheme to edit.

C#
protected T SchemeToEdit { get; }
Property Value:

The scheme to edit.

Methods

Applies the changes.

C#
public void ApplyChanges()

Generates the new theme scheme.

C#
protected abstract T GenerateNewThemeScheme()
Returns:

T

The new theme scheme.

Gets the name of the next free theme scheme.

C#
protected string GetNextFreeThemeSchemeName(string namePrefix, NamedObjects<T> schemes)
Parameters:namePrefixstring

The name prefix.

schemesNamedObjects<T>

The schemes.

Returns:

string

The new name.

Initializes the context.

C#
protected abstract void InitializeContext(string schemeName, T scheme)
Parameters:schemeNamestring

Name of the scheme.

schemeT

The scheme.