Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RibbonComboBox selected gallery item reverts to old value on mouse leave

Tags:

c#

wpf

ribbon

i have replaced WPF ribbons to the newest library, the combobox selection changed triggers reload of datagrid. I have problem with the RibbonComboBox.

If i leave with mousecursor out of the selected item, the selected item is reverted to the old item. if i keep cursor on the selected item until the datagrid reload is finished, the new value is accepted to the ribboncombobox.

Do i miss some special ribboncombobox property to accept change by click only or this is a bug in the combobox component? only possible workaround would be launch datagrid reload function in thread to let the ribbon combobox finish its processes.

sample code here:

<r:RibbonComboBox>
       <r:RibbonGallery SelectedValuePath="Content" SelectionChanged="pgSize_SelectionChanged">
         <r:RibbonGalleryCategory>
            <r:RibbonGalleryItem Tag="20" Content="Size (20)" Foreground="Green" />
            <r:RibbonGalleryItem Tag="30" Content="Size (30)" Foreground="Green" IsSelected="True"/>
            <r:RibbonGalleryItem Tag="50" Content="Size (50)" Foreground="Orange" />
            <r:RibbonGalleryItem Tag="100" Content="Size (100)" Foreground="Red" />
         </r:RibbonGalleryCategory>
       </r:RibbonGallery>
</r:RibbonComboBox>      
like image 821
kimicz Avatar asked Nov 14 '22 06:11

kimicz


1 Answers

This is a bug in the ribbon control. See the Connect bug report.

like image 103
Edward Brey Avatar answered Dec 24 '22 04:12

Edward Brey