Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I'm beginner here and would like your help.

The number select in dropdown don't appear in RibbonComboBox. Where I'm making mistakes?

XML
<RibbonWindow
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Custom="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon" x:Class="RibbonComboBox.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Ribbon HorizontalAlignment="Left" VerticalAlignment="Top" Width="517" Height="113" SelectionChanged="Ribbon_SelectionChanged_1">
            <RibbonComboBox x:Name="teste" Label="ComboBox">
                <ComboBoxItem Content="2"/>
                <ComboBoxItem Content="3"/>
                <ComboBoxItem Content="4"/>
            </RibbonComboBox>
        </Ribbon>
</RibbonWindow>
Posted

1 solution

Have a look here: Ribbon (WPF) – ribbon:RibbonComboBox[^]

More about RibbonComboBox Class[^]

Example:
HTML
<ribbon:ribboncombobox label="MyRibbon" xmlns:ribbon="#unknown">
                  SelectionBoxWidth="30"
                  VerticalAlignment="Center" 
                  IsEditable="False" >
    <ribbon:ribbongallery selectedvalue="1">
                          SelectedValuePath="Content" 
                          MaxColumnCount="1">
        <ribbon:ribbongallerycategory>
            <ribbon:ribbongalleryitem content="1" foreground="One" />
            <ribbon:ribbongalleryitem content="2" foreground="Two" />
            <ribbon:ribbongalleryitem content="3" foreground="Three" />
        </ribbon:ribbongallerycategory>
    </ribbon:ribbongallery>
</ribbon:ribboncombobox>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900