Back to Devexpress

GetUniqueValuesEventArgsBase.PropertyName Property

wpf-devexpress-dot-xpf-dot-data-dot-getuniquevalueseventargsbase-50f55c1e.md

latest4.6 KB
Original Source

GetUniqueValuesEventArgsBase.PropertyName Property

Gets the property name.

Namespace : DevExpress.Xpf.Data

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public string PropertyName { get; }
vb
Public ReadOnly Property PropertyName As String

Property Value

TypeDescription
String

The property name.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the PropertyName 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-custom-service-with-restrictions/CS/MainWindow.xaml.cs#L28

csharp
source.GetUniqueValues += (o, e) => {
    e.Result = GetUniqueValuesAsync(e.PropertyName);
};

wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceSample/MainWindow.xaml.cs#L27

csharp
source.GetUniqueValues += (o, e) => {
    if(e.PropertyName == "Priority") {
        var values = Enum.GetValues(typeof(Priority)).Cast<object>().ToArray();

wpf-data-grid-use-virtual-sources-to-bind-to-in-memory-data/CS/MainWindow.xaml.cs#L38

csharp
source.GetUniqueValues += (o, e) => {
    if(e.PropertyName == "Priority") {
        e.Result = Task.FromResult(Enum.GetValues(typeof(Priority)).Cast<object>().ToArray());

wpf-data-grid-bind-to-infiniteasyncsource/CS/InfiniteAsyncSourceSample/MainWindow.xaml.cs#L27

csharp
source.GetUniqueValues += (o, e) => {
    if(e.PropertyName == "Priority") {
        var values = Enum.GetValues(typeof(Priority)).Cast<object>().ToArray();

wpf-data-grid-bind-to-custom-service-with-restrictions/VB/MainWindow.xaml.vb#L20

vb
AddHandler source.FetchRows, Sub(o, e) e.Result = FetchRowsAsync(e)
AddHandler source.GetUniqueValues, Sub(o, e) e.Result = GetUniqueValuesAsync(e.PropertyName)
Me.grid.ItemsSource = source

wpf-data-grid-bind-to-pagedasyncsource/VB/PagedAsyncSourceSample/MainWindow.xaml.vb#L20

vb
AddHandler source.GetUniqueValues, Sub(o, e)
    If Equals(e.PropertyName, "Priority") Then
        Dim values = [Enum].GetValues(GetType(Priority)).Cast(Of Object)().ToArray()

wpf-data-grid-use-virtual-sources-to-bind-to-in-memory-data/VB/MainWindow.xaml.vb#L23

vb
AddHandler source.GetUniqueValues, Sub(o, e)
    If Equals(e.PropertyName, "Priority") Then
        e.Result = Task.FromResult([Enum].GetValues(GetType(Priority)).Cast(Of Object)().ToArray())

See Also

GetUniqueValuesEventArgsBase Class

GetUniqueValuesEventArgsBase Members

DevExpress.Xpf.Data Namespace