It is a formative, representative and graphical user interface framework provided by Microsoft to create interactive, dynamic and rich user experience. We can say that it is next generation user interface framework. It allows developing easily window applications. It coalesces application user interfaces, 2D graphics, 3D drawing, document and multimedia into one single architectural framework. It enables us to create visually stunning user interface.
Working with WPF
Steps to be followed:
1. Start Visual Studio and go to File->New->Project
2. New Project window will populate. Select WPF Application. Change name as we have changed to WpfExample and click on button OK .
3. WpfExample window will come and we can see App.xaml and MainWindow.xaml
Notes:
1. App.xaml (corresponding code file, App.xaml.cs or App.xaml.vb) which is used to store resources and provide availability throughout the entire window in our application and hence works as a global file for application wide declarations.
2. MainWindow.xaml is same as .aspx page in ASP.NET.Here XAML is used as markup language to create UI.
4. Place the code shown in below screenshot in between .
Working with WPF
Steps to be followed:
1. Start Visual Studio and go to File->New->Project
2. New Project window will populate. Select WPF Application. Change name as we have changed to WpfExample and click on button OK .
3. WpfExample window will come and we can see App.xaml and MainWindow.xaml
Notes:
1. App.xaml (corresponding code file, App.xaml.cs or App.xaml.vb) which is used to store resources and provide availability throughout the entire window in our application and hence works as a global file for application wide declarations.
2. MainWindow.xaml is same as .aspx page in ASP.NET.Here XAML is used as markup language to create UI.
4. Place the code shown in below screenshot in between
5. Run the application by pressing F5 and we can see the output as below.
No comments:
Post a Comment