Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to have partial xaml like partial class?

I'd like to split a xaml file into several files a bit like partial class : is there a way to do so ?

I want to be able to manage my project files more convenienly.

like image 700
user310291 Avatar asked Jun 22 '13 12:06

user310291


1 Answers

There are some possibilites, although it may not be exactly what you think about.

You may outsource ressources by means of a ResourceDictionary. This is very convenient for styles and templates. Of course you have to organize your XAML such that you could benefit of it (use ControlTemplates for instance).

Furthermore you could create UserControls that encapsulate parts of your XAML. This depends on your layout, though.

These parts can be organized in assemblies, which you refer to by references known to XAML via xmlns:??? declarations.

like image 185
JeffRSon Avatar answered Oct 28 '22 02:10

JeffRSon