Hello!
At the time of studying Ribbon in WPF, I read in parallel MSDN, and pulled out an example of working with the Combobox, but I have scrolling from somewhere. Although the example from MSDN full copy * past.
What is the reason?
XAML source code:
<r:RibbonWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:r="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon" x:Class="RibbonExample.MainWindow" Title="MainWindow" Height="350" Width="525"> <Grid> <r:Ribbon> <r:RibbonTab Header="Главная"> <r:RibbonGroup Header="Пример"> <!--Начало пример MSDN--> <r:RibbonComboBox Label="1" SelectionBoxWidth="62" VerticalAlignment="Center" IsEditable="True"> <r:RibbonGallery SelectedValue="Green" SelectedValuePath="Content" MaxColumnCount="1"> <r:RibbonGalleryCategory> <r:RibbonGalleryItem Content="Green" Foreground="Green" /> <r:RibbonGalleryItem Content="Blue" Foreground="Blue" /> <r:RibbonGalleryItem Content="Orange" Foreground="Orange" /> </r:RibbonGalleryCategory> </r:RibbonGallery> </r:RibbonComboBox> <!--Конец примера--> </r:RibbonGroup> </r:RibbonTab> </r:Ribbon> </Grid> </r:RibbonWindow> More elements under the cursor are highlighted only where there is text, and not the full width of the drop-down list.


