HyperlinkEdit.DisplayMember Property
In This Article
Gets or sets the name of the bound object’s field that contains the text displayed by the editor. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
#Property Value
Type | Description |
---|---|
String | A String value that is the bound object’s field name. |
#Remarks
Use the DisplayMember property to display the text from the bound object’s field within the hyperlink editor. Note that the HyperlinkEdit.Text property has higher priority.
The following example demonstrates how to use the DisplayMember and HyperlinkEdit.NavigationUrlMember properties.
public class ViewModel {
public Site DefaultPage { get; set; }
public ViewModel() {
this.DefaultPage = new Site() { Name = "DevExpress", Url = "www.devexpress.com" };
}
}
public class Site {
public string Url { get; set; }
public string Name { get; set; }
}
See Also