wpf-devexpress-dot-xpf-dot-data-dot-getuniquevalueseventargsbase-50f55c1e.md
Gets the property name.
Namespace : DevExpress.Xpf.Data
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public string PropertyName { get; }
Public ReadOnly Property PropertyName As String
| Type | Description |
|---|---|
| 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
source.GetUniqueValues += (o, e) => {
e.Result = GetUniqueValuesAsync(e.PropertyName);
};
wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceSample/MainWindow.xaml.cs#L27
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
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
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
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
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
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