Splitting WPF interface across multiple Xaml files

后端 未结 4 1295
南旧
南旧 2020-12-25 09:51

I am trying to create a user interface using XAML. However, the file is quickly becoming very large and difficult to work with. What is the best way for splitting it across

4条回答
  •  情话喂你
    2020-12-25 10:33

    You can also create a Page, instead of a UserControl. A Page can be hosted by the Window or by a Frame. Search for the pros and cons of a Page vs UserControl. It depends a bit on your requirements with respect to navigation which will suit your needs best.

    Here is an example of using a Page in a Frame.

提交回复
热议问题