Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
Designer issue for RibbonTabItem subclass
posted

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>

 

 

 

 

 

 

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    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.

Children