I'd like to host custom items in a ToolBar in an ItemsControl. However, the buttons I add are rendered below the toolbar and as regular buttons rather than in the ToolBar with the ToolBar look and feel.
This can be reproduced with a few lines of Xaml (I've excluded the default content). The custom ItemsControl:
<ToolBar ItemsSource="{Binding Items}" />
The example window:
<StackPanel Orientation="Vertical">
<local:UserControl1>
<Button>control button</Button>
</local:UserControl1>
<Button>standard button</Button>
<ToolBar>
<Button>window toolbar button</Button>
</ToolBar>
I would expect that the "control button" would render similarly to the "window toolbar button", rather it renders like the "standard button" below an empty ToolBar.
Any guidance will be appreciated.