Table of Contents

Class SelectOptionDialog

Namespace
The.Model.Editor
Assembly
Instagile.Model.dll

Single-level option picker

public sealed class SelectOptionDialog : DialogBase<Guid?>, IDialog<Guid?>, IDialog
Inheritance
SelectOptionDialog
Implements
Inherited Members

Constructors

SelectOptionDialog(string, Guid, IEnumerable<IOptionModel<Guid>>, Func<IOptionModel<Guid>?, string?>)

public SelectOptionDialog(string label, Guid initialValue, IEnumerable<IOptionModel<Guid>> choices, Func<IOptionModel<Guid>?, string?> getDoc)

Parameters

label string
initialValue Guid
choices IEnumerable<IOptionModel<Guid>>
getDoc Func<IOptionModel<Guid>, string>

Properties

Choices

public ObservableCollection<IOptionModel<Guid>> Choices { get; }

Property Value

ObservableCollection<IOptionModel<Guid>>

DoCancel

public ICommand DoCancel { get; }

Property Value

ICommand

DoOK

public ICommand DoOK { get; }

Property Value

ICommand

Label

public string Label { get; }

Property Value

string

Selection

public IProperty<IOptionModel<Guid>> Selection { get; }

Property Value

IProperty<IOptionModel<Guid>>

Methods

Create<T>(string, Guid, IEnumerable<T>, Func<T, string?>)

public static SelectOptionDialog Create<T>(string label, Guid initialValue, IEnumerable<T> choices, Func<T, string?> getDoc) where T : IOptionModel<Guid>

Parameters

label string
initialValue Guid
choices IEnumerable<T>
getDoc Func<T, string>

Returns

SelectOptionDialog

Type Parameters

T