Windows Style from ResourceDictionary don't apply

后端 未结 3 1067
一向
一向 2021-02-19 03:43

As I have multiple Windows in my application, I am looking for a solution that does not require me to set a binding on each Window.

<
3条回答
  •  时光取名叫无心
    2021-02-19 03:56

    Add a new brush in your resource dictionary

    
    

    and in your WPF window simply set the required resource to the window background property

    
    

提交回复
热议问题