Skip to main content

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.1.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.

<Window ...>
    <Window.DataContext>
        <local:ViewModel/>
    </Window.DataContext>
    <Grid>
        <dxe:HyperlinkEdit EditValue="{Binding DefaultPage}"  x:Name="hle" 
        NavigationUrlMember="Url" DisplayMember="Name" AllowAutoNavigate="True"/>
    </Grid>
</Window>
See Also