Brief Description About WPF in VB.NET
Introduction of Windows Presentation Foundation,Ways to use WPF Technologysteps how to create a Windows Presentation Foundation.
Windows Presentation Foundation also know as Avalon (WPF) is a .net Framework Subsystem .WPF based on Extensible application markup language. which is used to create a user interface .the developer can create a unique UI (user interface) for the application using WPF This article gives you only the brief introduction of WPF .It is a major component of .Net Framework 3.0.we can use WPF technology in two different forms as defined below
- Normal windows form code
- Extensible markup language
Steps four creating a WPF application:
To create a WPF application
Step 1. In the File menu, click New Project.
The New Project dialog box will appears. New project dialog box lists the different default application types that Visual C# Express Edition can create.
Below given an example of WPF.
- Click WPF Application.
- Change the name of your application to Ink Pad.
- Click OK.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
Dim Button1 As New Button
Button1.Height = 50
Button1.Margin = New Thickness(100, 100, 100, 0)
Button1.VerticalAlignment = Windows.VerticalAlignment.Top
Button1.Content = "Button1"