Back to Devexpress

PagedAsyncSource.GetUniqueValuesCommand Property

wpf-devexpress-dot-xpf-dot-data-dot-pagedasyncsource-306a1c45.md

latest2.7 KB
Original Source

PagedAsyncSource.GetUniqueValuesCommand Property

Gets or sets a command that allows you to get unique values.

Namespace : DevExpress.Xpf.Data

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public ICommand<GetUniqueValuesAsyncArgs> GetUniqueValuesCommand { get; set; }
vb
Public Property GetUniqueValuesCommand As ICommand(Of GetUniqueValuesAsyncArgs)

Property Value

TypeDescription
ICommand<GetUniqueValuesAsyncArgs>

A command that allows you to get unique values.

|

Remarks

Bind a command to the GetUniqueValuesCommand property to maintain a clean MVVM pattern. The command works like a PagedAsyncSource.GetUniqueValues event handler and allows you to process unique values in a ViewModel.

Refer to the following help topic for more information: Enable Filter Operations.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetUniqueValuesCommand property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceMVVMSample/MainWindow.xaml#L22

xml
GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}"
                         GetUniqueValuesCommand="{Binding GetUniqueValuesCommand}"/>
</dxg:GridControl.ItemsSource>

See Also

PagedAsyncSource Class

PagedAsyncSource Members

DevExpress.Xpf.Data Namespace