---
title: "Adding combobox to Ribbon Control in XAML"  
description: "Adding combobox to Ribbon Control in XAML"  
author: "Anonymous User"  
published: 2014-08-19  
updated: 2014-08-19  
canonical: https://www.mindstick.com/forum/2058/adding-combobox-to-ribbon-control-in-xaml  
category: "wpf"  
tags: ["wpf"]  
reading_time: 2 minutes  

---

# Adding combobox to Ribbon Control in XAML

I have a [WPF](https://www.mindstick.com/forum/304/wpf) [Application](https://www.mindstick.com/articles/12824/calculator-application-in-android) with a [Ribbon](https://www.mindstick.com/interview/1494/what-is-ribbon-in-sharepoint-2010) Control. I want to [add](https://www.mindstick.com/forum/12983/add-address-in-textbox-when-page-is-load-and-if-i-search-address-in-textbox-show-in-map-by-javascript) a [ComboBox](https://www.mindstick.com/articles/57/display-record-according-to-combobox-selection-in-csharp-dot-net), to show the logged in [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) next to the help button. But when I try to add the ComboBox, it is [created as](https://answers.mindstick.com/qa/37901/nagaland-was-created-as-a-separate-state-in-which-year) a Tab.

```
<Grid>   
<Grid.RowDefinitions>       
<RowDefinition Height="Auto"/>       
<RowDefinition></RowDefinition>    </Grid.RowDefinitions>    <Ribbon x:Name="RibbonWin" SelectedIndex="0" Margin="0,0,0,113">       
<Ribbon.HelpPaneContent>           
<RibbonButton SmallImageSource="Images\help.png"></RibbonButton>       
</Ribbon.HelpPaneContent>       
<RibbonComboBox>            <ComboBoxItem
Content="Test1"/>       
</RibbonComboBox>        <RibbonTab Header="Home" KeyTip="H" Margin="0,0,0,-1" >           
<RibbonGroup x:Name="ClipboardGroup" Header="Clipboard">               
<RibbonMenuButton LargeImageSource="Images\paste.jpg"Label="Paste" KeyTip="V">                   
<RibbonMenuItem ImageSource="Images\paste.jpg"Header="Keep Text Only" KeyTip="T"/>                   
<RibbonMenuItem ImageSource="Images\paste.jpg"Header="Paste Special..." KeyTip="S"/>                </RibbonMenuButton>               
<RibbonButton SmallImageSource="Images\cut.jpg"Label="Cut" KeyTip="X" />               
<RibbonButton SmallImageSource="Images\copy.jpg"Label="Copy" KeyTip="C" />           
</RibbonGroup>           
<RibbonGroup x:Name="Questions" Header="Questions And Answers">               
<RibbonMenuButton LargeImageSource="Images\Question.jpg"Label="Questions" KeyTip="V">                   
<RibbonMenuItem ImageSource="Images\paste.jpg" Header="Add Question" KeyTip="T"/>                   
<RibbonMenuItem ImageSource="Images\paste.jpg" Header="Paste Special..." KeyTip="S"/>               
</RibbonMenuButton>               
<RibbonButton SmallImageSource="Images\Save.jpg" Label="Save" KeyTip="X" />               
<RibbonButton SmallImageSource="Images\Add.jpg" Label="Add" KeyTip="C" />           
</RibbonGroup>       
</RibbonTab>        <RibbonTab Header="Insert" KeyTip="I">       
</RibbonTab>        <RibbonTab Header="PageLayout" KeyTip="L">       
</RibbonTab>    </Ribbon></Grid>
```

Also is there a way to [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) the the Application Menu ComboBox on the [left](https://www.mindstick.com/articles/12768/don-t-be-left-behind-with-the-new-it-revolution) that is created by default.

## Replies

### Reply by Pravesh Singh

Hi Jay, \

Put a RibbonApplicationMenu into the ApplicationMenu-property and set its Visibility to 'Collapsed'. This will not remove the application menu, but at least it is not longer visible. There is not other way to hide it.

The ComboBox must be inserted into a RibbonTab, so a RibbonTab will be created implicitly if you do not specify anyone.

The following example demonstrates how to hide the application menu and insert a combo box:

```
<Ribbon>    <Ribbon.ApplicationMenu>        <RibbonApplicationMenu Visibility="Collapsed"></RibbonApplicationMenu>    </Ribbon.ApplicationMenu>     <RibbonTab>        <RibbonGroup>            <RibbonComboBox></RibbonComboBox>        </RibbonGroup>    </RibbonTab></Ribbon>
```


---

Original Source: https://www.mindstick.com/forum/2058/adding-combobox-to-ribbon-control-in-xaml

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
