Class
StringFormatsViewModel

A view-model that encapsulates the editing of a string format for a Value's Description.

Definition

Namespace:Telerik.Windows.Controls.FieldList.Editing

Assembly:Telerik.Windows.Controls.PivotFieldList.dll

Syntax:

cs-api-definition
public sealed class StringFormatsViewModel : PivotSettingsViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel

Inheritance: objectViewModelBaseDialogViewModelPivotSettingsViewModelStringFormatsViewModel

Implements: IDialogViewModelIDisposableINotifyPropertyChanged

Inherited Members DialogViewModel.IsWorkingDialogViewModel.RequiresRefreshDialogViewModel.IsAvailableDialogViewModel.OkDialogViewModel.CancelDialogViewModel.RefreshDialogViewModel.CompletedDialogViewModel.CanceledViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.PropertyChanged

Properties

AvailableFormatOptions

Gets a list with StringFormatOption available for SelectedFormat selection.

Declaration

cs-api-definition
public IList<StringFormatOption> AvailableFormatOptions { get; }

Property Value

IList<StringFormatOption>

SelectedFormat

Gets or sets the selected string format.

Declaration

cs-api-definition
public string SelectedFormat { get; set; }

Property Value

string

Methods

AttachToServices()

Attach to the new services.

Declaration

cs-api-definition
protected override void AttachToServices()

Overrides PivotSettingsViewModel.AttachToServices()

ExecuteOk(object)

Handles the Ok execution.

Declaration

cs-api-definition
protected override void ExecuteOk(object parameter)

Parameters

parameter

object

Overrides DialogViewModel.ExecuteOk(object)

RetrieveServices(IServiceProvider)

Retrieve the services from the serviceProvider. You could use the if you do not want the IsAvailable to track your requests.

Declaration

cs-api-definition
protected override void RetrieveServices(IServiceProvider serviceProvider)

Parameters

serviceProvider

IServiceProvider

The IServiceProvider to retrieve services from. This is a slim wrapper around the that would keep track of if all requested services were available. If a requested service was unavailable the DialogViewModel's IsAvailable would be set to false.

Overrides PivotSettingsViewModel.RetrieveServices(IServiceProvider)