Same header & footer in all WPF windows

后端 未结 4 1898
终归单人心
终归单人心 2021-01-14 07:48

In my project I have same header & footer for all windows (I have more then 20 wpf windows in this project), Only Content has changed. This is WPF project. If its a asp.

4条回答
  •  没有蜡笔的小新
    2021-01-14 07:54

    Step 1: Define your window style with header and footer in app.xaml or in shared ResourceDictionary.

    
    

    Step 2: Set Style to windows.

    Style="{StaticResource HeaderFooterWindowStyle}"
    

提交回复
热议问题