Hi
You can replace "UserControl" with "Window" in the xaml and xaml.cs files.
If you can understand French (or use an in line translator), you can see this tutorial about AutoCAD user interfaces with .NET.
By my side, I made a basic template for an AutoCAD WPF modal dialog using MVVM (see attached) which automatically launches AutoCAD (currently 2014) and loads the DLL when debugging from Visual Studio.
The "AutoCAD WPF Dialog.zip" have to pasted in the Visual Studio 2015 Project Templates folder, default:
Documents\Visual Studio 2015\Templates\ProjectTemplates
or in one of its subfoder (you can create an AutoCAD sub folder):
Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C#\AutoCAD
You'd probably have to edit the AcadWpfDialog.csproj in the ZIP file to change the paths of the StartProgram, currently:
<StartProgram>C:\Program Files\Autodesk\AutoCAD 2014\acad.exe</StartProgram>
and those or the AutoCAD libraries, currently:
<HintPath>C:\ObjectARX 2013\inc\AcCoreMgd.dll</HintPath>
<HintPath>C:\ObjectARX 2013\inc\AcDbMgd.dll</HintPath>
<HintPath>C:\ObjectARX 2013\inc\AcMgd.dll</HintPath>
You'd also edit the My Template.vstemplate if you want to target another .NET Framework than 4.0:
<RequiredFrameworkVersion>4.0</RequiredFrameworkVersion>