Hi!
I created a user control called 'RibbonTabX' which contains a stackpanel named 'spMain'. What I'd like to do, is when I declare an instance of my 'RibbonTabX' in xaml, within that same xaml I'd like to specify controls which will be inside the child stackPanel 'spMain'. Here is the code which will make what I'm trying to do much clearer:
<ribbon:RibbonTabX strHeaderText="Testing 123...">
<ribbon:RibbonTabX.spMain>
<sdk:Label Content="Hello" />
<sdk:Label Content="World" />
</ribbon:RibbonTabX.spMain>
</ribbon:RibbonTabX>
In the parent of RibbonTabX, I want to specify child contents of the stackpanel within my user control 'RibbonTabX'. Just like you can do with a 'TabItem' control. Any ideas how I can do this?
Thanks!