Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 app.xaml 文件中有许多适用于我的应用程序的样式。我想将每种样式拆分成一个文件,或者为了可读性做另一件事。现在,不可能通过文件,很长。我需要一个建议。可以将应用程序文件拆分为多个文件吗?
把它放在你的 app.xaml 中:
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="YourStylesFile.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>