In Visual Studio, two files are created when you create a new Windows Form in your solution (e.g. if you create MyForm.cs, MyForm.Designer.cs and MyForm.resx are also create
Open .csproj in edit mode, look for the file you want to be under another one, and add the DependentUpon element, like this:
AlertDialog.xaml