I have created a subclass of the RibbonTabItem to simplify my main window's ribbon. The problem is that the designer for my RibbonTabItem subclass only shows the "tab" part of the ribbon tab item! All of the children are not shown in the designer. This really cuts my productivity down.
How can I get the designer to show up properly? I know that I could move this to the window, but that prevents me from creating reusable ribbon tabs
Below is an example:
<igRibbon:RibbonTabItem x:Class="Intel.DE.DSS.HomeRibbonTab"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:igRibbon="http://infragistics.com/Ribbon"
Header="Home"
mc:Ignorable="d" d:DesignHeight="72" d:DesignWidth="245">
<igRibbon:RibbonGroup Caption="Test Group">
<igRibbon:ButtonTool Caption="Test Button" />
</igRibbon:RibbonGroup>
</igRibbon:RibbonTabItem>
A TabItem (ours, ms, etc.) is just the header that you see in the TabControl so that is all it's template uses/shows. When you select a tab, the tabcontrol uses the Content properties of the selected TabItem and displays that within the ContentPresenter within its template.
Could you give me a sample how to design the Content of tabitem? Create a control?
Ok. So the correct approach is to design the content separately and host it in a RibbonTabItem -- no RibbonTabItem subclass needed.
Thanks