Posts

Showing posts with the label Windows Presentation Foundation

Getting Started with C# WPF Applications

Image
Some notes on how to create a simple Windows Presentation Foundation (WPF) application and get familiar with the Visual C# integrated development environment (IDE). Like Windows Forms applications, WPF applications can be developed by dragging controls from the Toolbox to the design editor. As well as having a designer, Properties window and Toolbox, the IDE in WPF projects has a window that contains Extensible Application Markup Language (XAML), a language used to create user interfaces. 1. Creating the WPF application In the File menu, click New Project and select WPF Application. In this example we will create a simple scribbler application, so you might want to name it Scribble. Click OK. 2. Editing WPF window properties Visual C# will create a folder named after the project title. It will display your new WPF window titled Window1 in the Designer view. You can view its code by right-clicking on the window and selecting View Code: [code language="csh...