Click here to Skip to main content
15,923,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a combobox in a ribbon bar as follows:

HTML
<r:ribboncombobox xmlns:r="#unknown">
                                Label="Saved Queries" Name="Saved_Queries" ToolTip="Select an item to run or edit" >
                                <r:ribbongallery>
                                    ScrollViewer.VerticalScrollBarVisibility="Auto"  SelectionChanged="RibbonGallery_SelectionChanged" >
                                    
                                    <r:ribbongallery.categorystyle>
                                        <Style TargetType="{x:Type r:RibbonGalleryCategory}" 
                                    BasedOn="{StaticResource {x:Type r:RibbonGalleryCategory}}">
                                            <setter property="MinColumnCount" value="1" />
                                            <setter property="MaxColumnCount" value="1" />
                                            <Style.Triggers>
                                                <trigger property="Header" value="Automatic Brush">
                                                    <setter property="HeaderVisibility" value="Collapsed" />
                                                    <setter property="MinColumnCount" value="1" />
                                                    <setter property="MaxColumnCount" value="1" />
                                                    <setter property="IsSharedColumnSizeScope" value="True" />
                                                </trigger>
                                            </Style.Triggers>
                                        </Style>
                                    </r:ribbongallery.categorystyle>
                                    <r:ribbongallery.galleryitemtemplate>
                                        <datatemplate>
                                            <grid>
                                                
                                            </grid>
                                        </datatemplate>
                                    </r:ribbongallery.galleryitemtemplate>
                                    <r:ribbongallerycategory>
                                    </r:ribbongallerycategory>
                                </r:ribbongallery>
                            </r:ribboncombobox>

When an item is selected in the combobox, im opening a new window.I am populating the combobox with an xml. But this does not happen. how can i go about this?
Posted

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