Windows
Presentation Foundation (WPF) is a UI framework that creates rich, interactive
client applications.
WPF combines application UIs, 2D and 3D graphics, documents and multimedia into one single framework. The WPF development platform supports a broad set of
application development features, including an application model, resources,
controls, graphics, layout, data binding, documents, and security. It is a
subset of the .NET. Its vector based rendering
engine uses hardware acceleration of modern graphic cards. This makes the UI
faster, scalable and resolution independent.
WPF uses the
Extensible Application Markup Language (XAML) to provide a declarative model
for application programming.
Go to menu File - > New Project and then Visual C# -> Windows -> WPF Application.
Visual studio automatically creates the project and adds some files:
MainWindow.xaml and MainWindow.xaml.cs
Double click on MainWindow.xaml and from Toolbox window drag a button and a label. Name label “lblTtitle”.
Double click button and add the following code:
lblTitle.Content = "Hello World!";