Class
ValueCalculationsViewModel

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

Definition

Properties

AvailableCalculationOptions

Gets a list of CalculationOptions available for selection.

Declaration

cs-api-definition
public IList<CalculationOption> AvailableCalculationOptions { get; }

Property Value

IList<CalculationOption>

AvailableGroupDescriptions

Gets a list of the Label items available for selection in SelectedGroupDescription.

Declaration

cs-api-definition
public IList<IGroupDescription> AvailableGroupDescriptions { get; }

Property Value

IList<IGroupDescription>

AvailableGroupNames

Gets a lists of object items available for selection in SelectedGroupName.

Declaration

cs-api-definition
public IList<object> AvailableGroupNames { get; }

Property Value

IList<object>

RequiresGroupDescription

Gets a value that indicates if the SelectedCalculationOption requires selection of base label.

Declaration

cs-api-definition
public bool RequiresGroupDescription { get; }

Property Value

bool

RequiresGroupName

Gets a value that indicates if the SelectedCalculationOption requires selection of base item.

Declaration

cs-api-definition
public bool RequiresGroupName { get; }

Property Value

bool

SelectedCalculationOption

Gets or sets the selected CalculationOption.

Declaration

cs-api-definition
public CalculationOption SelectedCalculationOption { get; set; }

Property Value

CalculationOption

SelectedGroupDescription

Gets or sets the selected Label used in the setup of some group filters.

Declaration

cs-api-definition
public IGroupDescription SelectedGroupDescription { get; set; }

Property Value

IGroupDescription

SelectedGroupName

Gets or sets the available base item used in the setup of some group filters.

Declaration

cs-api-definition
public object SelectedGroupName { get; set; }

Property Value

object

Methods

AttachToServices()

Attach to the new services.

Declaration

cs-api-definition
protected override void AttachToServices()

Overrides PivotResultsViewModel.AttachToServices()

CanExecuteOk(object)

Checks if the Ok ICommand can be executed.

Declaration

cs-api-definition
protected override bool CanExecuteOk(object parameter)

Parameters

parameter

object

The parameters.

Returns

bool

True if ICommand can be executed. Otherwise - false.

Overrides DialogViewModel.CanExecuteOk(object)

ExecuteOk(object)

Handles the Ok execution.

Declaration

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

Parameters

parameter

object

Overrides DialogViewModel.ExecuteOk(object)

OnDataProviderResultsChanged()

Declaration

cs-api-definition
protected override void OnDataProviderResultsChanged()

Overrides PivotResultsViewModel.OnDataProviderResultsChanged()

OnPivotSettingsChanged()

Handles the PivotSettings changed.

Declaration

cs-api-definition
protected override void OnPivotSettingsChanged()

Overrides PivotSettingsViewModel.OnPivotSettingsChanged()

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 PivotResultsViewModel.RetrieveServices(IServiceProvider)