I am trying to create my hello world windows app in WPF.
What should I do to run this window?
Class1.xaml
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid> </Grid>
</Window>
App.xaml
<Application x:Class="App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Class1.xaml" >
<Application.Resources>
</Application.Resources>
</Application>
Program.cs
class Program
{
[STAThread]
public static void Main()
{
new App().Run();
}
}
I have created a blank sln and added these three files. I have also added WindowsBase, PresentationBase, PresentationFramework refs.
But the App is not running.
What is the problem?