I have defined a readonly dependency property of type ToolBar to my control.
How can I populate this ToolBar with Items in xaml code? The ToolBar is created in constructor of my control and is readonly.
I can write
<ToolBar>
<MenuItem/>
<Button/>
</ToolBar>
but when I write
<my:myControl.MyToolBar>
<MenuItem/>
<Button/>
</my:myControl.MyToolBar>
the error says 'Property MyToolBar does not support values of 'Button/MenuItem''