What is the easiest way to break up large XAML files in my application?

后端 未结 3 2028
灰色年华
灰色年华 2021-02-08 12:57

I recently discovered that I could make use of user controls to reduce the size of my main application\'s .xaml file. I am new to WPF and realized that my app\'s XAML is getting

3条回答
  •  太阳男子
    2021-02-08 13:49

    Also for theming/styling avoid putting in styles at the control/individual level, rather have the theme.xaml handle the skinning directly, that way you don't have the bloat of styling information inside the Xaml.

    i.e. could be avoided by directly applying the styling on MyControl in the theme file, that way you only have in the Window.xaml

提交回复
热议问题