here is a brief instruction set for how to build a singleton xaml app from scratch.
Then you have to make your own modifications in your app.
follow the steps below
1. Run Visual Studio
2.From the menu Select File -> New Project ->Windows Application (WPF) then OK
3.Double click Window1.xaml.cs
4.Overwritethe partial class Window1 with the code below
public partial class Window1 : System.Windows.Window
{
private static Window1 instance;
private Window1()
{
InitializeComponent();
}
private void InitializeComponent()
{
throw new Exception("The method or operation is not implemented.");
}
public static Window1 Instance
{
get
{
if (instance == null)
{
instance =
new Window1();
}
return instance;
}
}
}
5. Double click Window1.xaml
6.Overwrite the first line with the code below
<
Window x:Class="WindowsApplication1.Instance"
7.From the menuSelect Debug -> Start Debugging F5