Один из способов - создать ControlTemplate
и / или Style
для окна.
<ControlTemplate x:Key="MyWindowTemplate" TargetType="Window">
<AdornerDecorator>
<DockPanel>
<!-- Your toolbar content and other shared content -->
<!-- The dynamic content is loaded into the content presenter: -->
<ContentPresenter Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}" />
</DockPanel>
</AdornerDecorator>
</ControlTemplate>
<Style x:Key="MyWindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResource {x:Type Window}}">
<Setter Property="Template" Value="{StaticResource MyWindowTemplate}" />
</Style>
Когда вы сейчас создаете экземпляр окна, вы применяете стиль к окну и добавляете некоторый контент в свойство контента и (при необходимости) некоторый ContentTemplate.