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.
- Click WPF Application.
- Change the name of your application to Ink Pad.
- Click OK.
Below given an example of WPF.
Class MainWindow
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"
End Sub
End Class
OUTPUT:

