Split one big XAML in number of Sub-XAML files
In my WPF4 Desktop-based application there is a big block with sidebar menu that repeats in each window and takes about 70 lines of XAML. In order to improve code reuse, I would like to split XAML file in two files: XAML-file that contains code for sidebar menu (≈70 lines) Base XAML file that contains «include/reference» to XAML-file with sidebar menu code As I understood, there are two ways to implement my problem: Use ResourceDictionary Use UserControl / CustomControl My questions are: What is the difference between ResourceDictionary and UserControl ? Could you give me examples where I have