wpf - Bind RibbonComboBox.SelectionBoxItem -



wpf - Bind RibbonComboBox.SelectionBoxItem -

i'm trying bind item selected in ribboncombobox property of object. problem i'm encountering ribboncombobox.selectionboxitem provides accessor; therefore, cannot bind in xaml.

any ideas how bind item property of object? utilize regular combobox there more appropriate control?

xmlns:ribbon="clr-namespace:microsoft.windows.controls.ribbon;assembly=ribboncontrolslibrary" <ribbon:ribboncombobox itemssource="{binding source={staticresource collectionofpossiblechoices}}"/ selectionboxitem="{binding path=propertytobindto}"/> <!--not valid-->

ribboncombobox unlike combobox (which i, also, find confusing). seek this;

<ribbon:ribboncombobox> <ribbon:ribbongallery selecteditem="{binding path=propertytobindto}"> <ribbon:ribbongallerycategory itemssource="{binding source={staticresource collectionofpossiblechoices}}" /> </ribbon:ribbongallery> </ribbon:ribboncombobox>

msdn reference

wpf ribbon ribbon-control

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -