RibbonGallery.SelectedItem Property

Gets or sets the currently selected item in the ribbon gallery.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property SelectedItem As Object
public Object SelectedItem { get; set; }
public:
property Object^ SelectedItem {
    Object^ get ();
    void set (Object^ value);
}
member SelectedItem : Object with get, set
function get SelectedItem () : Object
function set SelectedItem (value : Object)

Property Value

Type: System.Object
The currently selected item, or nulla null reference (Nothing in Visual Basic) if no item is selected. The registered default is nulla null reference (Nothing in Visual Basic). For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

SelectedItemProperty

Metadata properties set to true

BindsTwoWayByDefault

.NET Framework Security

See Also

Reference

RibbonGallery Class

Microsoft.Windows.Controls.Ribbon Namespace

SelectedValue

SelectedValuePath