Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.ListBox Namespace / ListBox Class / SelectedValue Property


In This Topic
    SelectedValue Property (ListBox)
    In This Topic

    Gets or sets the value of the SelectedItem, obtained by using SelectedValuePath.

    Syntax
    'Declaration
     
    Public Property SelectedValue As Object
    'Usage
     
    Dim instance As ListBox
    Dim value As Object
     
    instance.SelectedValue = value
     
    value = instance.SelectedValue
    public object SelectedValue {get; set;}

    Property Value

    The value of the selected item.

    Remarks
    When used with a data-virtualized (asynchronous) source, this property will always return null.
    Example
    For more information and examples on selecting data, refer to the Selecting Data topic.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also