You know how Visual Studio neatly collates all the relevant files (the XAML and the code behind file in this case) for you whenever you create a new user control or page in WPF: