How to have two XAML files with one code per file in WPF
1 answer
Code per file corresponds to one root element in XAML, so it is not possible for 2 files to share code per file.
Thus, you can often accomplish basic goals with other methods, including:
- Use
UserControl
for "child" content and include the control directly in the main XAML file. - Use pooled resource dictionaries for resource / style allocation
+1
source to share