Windows Style from ResourceDictionary don't apply

后端 未结 3 1055
一向
一向 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:46

    This is the solution I used in my application. It lets me keep all my window styles together, and requires just a couple lines after the section.

    Do your Style like so:

    
    

    Then, in your Window, after include the following: