ARTICLE

Brief Description About WPF

Posted by Shalini Juneja Articles | WPF using VB.NET March 09, 2011
Introduction of Windows Presentation Foundation,Ways to use WPF Technologysteps how to create a Windows Presentation Foundation
 
Reader Level:

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

  1. Normal windows form code
  2. 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.

  • 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:

WPF.GIF

Login to add your contents and source code to this article
share this article :
post comment
 
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Team Foundation Server Hosting
Become a Sponsor