I'm up against a very simple problem I guess, however I find no way to solve it.
I basically want to create a ribbon tab with all it´s content from a class:
class RibbonTabHome
{
public RibbonTab RibbonTab_Container;
public RibbonTabHome()
{
RibbonTab_Container = new RibbonTab() { Header = "Wont appear!" };
}
}
I then call the class and add the tab to the ribbon:
public MainWindow()
{
InitializeComponent();
RibbonTabHome asd = new RibbonTabHome();
RibbonMain.Items.Add(asd.RibbonTab_Container);
}
For some reason only the tab container itself is added, the header text is missing!
However this statement does its work perfectly!
RibbonMain.Items.Add(new RibbonTab() { Header = "Appearing"});
What am I missing?
Best regards!