Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: combobox Ribbon
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?
 
<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 7-Mar-13 3:58am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Have a look here: Ribbon (WPF) – ribbon:RibbonComboBox[^]
 
More about RibbonComboBox Class[^]
 
Example:
<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>
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 7 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100