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

Defines a layout for the Open file, Save file, and Open folder dialogs.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class LayoutConfigurationModel : ViewModelBase, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseLayoutConfigurationModel

Implements: IDisposableINotifyPropertyChanged

Inherited Members ViewModelBase.Dispose()ViewModelBase.Dispose(bool)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.OnPropertyChanged(string)ViewModelBase.VerifyPropertyName(string)ViewModelBase.PropertyChanged...

Constructors

Initializes a new instance of the LayoutConfigurationModel class.

C#
public LayoutConfigurationModel(LayoutType layoutType)
Parameters:layoutTypeLayoutType

The type of the layout.

Properties

Gets the IconSize.

C#
public IconSize IconSize { get; }

Gets the LayoutType.

C#
public LayoutType LayoutType { get; protected set; }

Gets the NameKey to be used for localizable strings.

C#
public string NameKey { get; }

Methods

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

A method to provide the localization key for the LayoutType.

C#
protected virtual string GetNameKeyForType(LayoutType layoutType)
Parameters:layoutTypeLayoutTypeReturns:

string

A method to provide the IconSize for the LayoutType.

C#
protected virtual IconSize GetSizeForType(LayoutType layoutType)
Parameters:layoutTypeLayoutTypeReturns:

IconSize

The chosen IconSize.