Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HyperlinkEdit.DisplayMember Property

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

public string DisplayMember { get; set; }

#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