Share via


RibbonGallery.IsSynchronizedWithCurrentItem Property

Gets or sets a value that indicates whether the gallery should keep the SelectedItem synchronized with the current item in the Items collection.

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

Syntax

'Declaration
Public Property IsSynchronizedWithCurrentItem As Nullable(Of Boolean)
public Nullable<bool> IsSynchronizedWithCurrentItem { get; set; }
public:
property Nullable<bool> IsSynchronizedWithCurrentItem {
    Nullable<bool> get ();
    void set (Nullable<bool> value);
}
member IsSynchronizedWithCurrentItem : Nullable<bool> with get, set
function get IsSynchronizedWithCurrentItem () : Nullable<boolean>
function set IsSynchronizedWithCurrentItem (value : Nullable<boolean>)

Property Value

Type: System.Nullable<Boolean>
true if the SelectedItem is always synchronized with the current item in the source collection; false if the SelectedItem is never synchronized with the current item; nulla null reference (Nothing in Visual Basic) if the SelectedItem is synchronized with the current item only if the gallery is bound to a CollectionViewSource. 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

IsSynchronizedWithCurrentItemProperty

Metadata properties set to true

None

.NET Framework Security

See Also

Reference

RibbonGallery Class

Microsoft.Windows.Controls.Ribbon Namespace