VB.NET WPF Tutorial for beginners : how to create first application using Windows Presentation Foundation (WPF) in Visual Studio 2015 and VB.NET programming language?
VB.NET WPF Tutorial - WPF (Windows Presentation Foundation) is a new technology which was released by Microsoft in conjunction with the .NET Framework 3.0 (current version is 3.5). In addition to the .NET 3.0 WPF also includes several new technologies i.e., WF (Workflow Foundation) for modeling and WCF (Windows Communication Foundation) which is the development of Web Services.
WPF is an extension of Windows Presentation Foundation. A technology other than the Visual Studio Community that provides an option to the developers for the user interface. This unique technology is composed of the XAML tag (Extensible Application Markup Language). WPF technology is a Latest GUI Framework from Microsoft for the .NET Framework and Microsoft also make lots of software with these technologies including Visual Studio. You can use WPF Windows Application or Web Application (Silverlight).
Please Read :
Click on Visual Basic -> Select Windows -> Verify target framework version -> Select WPF Application -> Specify project Name, Location -> Click on OK
Change window title either from Properties window or XAML Editor. You can see a reflection in Designer view. There are lots of properties available to change design of the window according to our requirements.
Click on Toolbox, Several controls are available in toolbox like Button, CheckBox, ComboBox, etc. You can simply design your surface by Click and drag a control from the Toolbox to the design surface. Click and drag Button control to the design surface.
Now Run the application by clicking on Start Debugging (F5) button.
WPF is an extension of Windows Presentation Foundation. A technology other than the Visual Studio Community that provides an option to the developers for the user interface. This unique technology is composed of the XAML tag (Extensible Application Markup Language). WPF technology is a Latest GUI Framework from Microsoft for the .NET Framework and Microsoft also make lots of software with these technologies including Visual Studio. You can use WPF Windows Application or Web Application (Silverlight).
Please Read :
- VB.NET SQLite Tutorials : CRUD (add,update,delete) Operations ADO.NET
- VB.NET Tutorials Create Connections to SQLite Connection String
XAML (Extensible Application Markup Language)
WPF uses XAML to represent the UI and user interaction. XAML is constructed from XML and writing similar to XHTML frequently you use in creating web-based applications. XAML also supports the principles of the code-behind as in the application ASP.NET. By using XAML, designers and programmers can work together in developing applications, first create the UI design designer then programmer continue by adding the code in a language that is supported by such C #/.NET and VB.NET.Create First WPF Application using VB.NET
Open your visual studio and create New WPF Project.Click on Visual Basic -> Select Windows -> Verify target framework version -> Select WPF Application -> Specify project Name, Location -> Click on OK
Change window title either from Properties window or XAML Editor. You can see a reflection in Designer view. There are lots of properties available to change design of the window according to our requirements.
Click on Toolbox, Several controls are available in toolbox like Button, CheckBox, ComboBox, etc. You can simply design your surface by Click and drag a control from the Toolbox to the design surface. Click and drag Button control to the design surface.
Source Code Hello World WPF
Double Click On the Button1 and write this source code
Class MainWindow
Private Sub button_Click(sender As Object, e As RoutedEventArgs) Handles button.Click
MsgBox("Hello World!")
End Sub
End Class
Now Run the application by clicking on Start Debugging (F5) button.
COMMENTS