官术网_书友最值得收藏!

Building Applications for Windows Using XAML Tools

The Windows Presentation Foundation (WPF) provides developers a unified programming model to build dynamic, data-driven desktop applications for Windows. It supports a broad set of features that includes application models, controls, layouts, graphics, resources, security, and more. It is a graphical subsystem for rendering rich UI (User Interfaces) and is part of the .NET Framework, which was first released along with .NET 3.0.

The WPF is a resolution-independent framework that uses vector-based rendering engine using the eXtendable Application Markup Language (XAML) to create stunning user interfaces.

The runtime libraries for it to execute are included with Windows since Windows Vista and Windows Server 2008. If you are using Windows XP with SP2/SP3 and Windows Server 2003, you can optionally install the necessary libraries.

In this chapter, we will discuss on the following points and start building Windows applications using the WPF framework:

  • The WPF architecture
  • The XAML overview
    • Object element syntax
    • Property attribute syntax
    • Property element syntax
    • Content syntax
    • Collection syntax
    • Event attribute syntax
    • Understanding the XAML namespaces
    • Working with inline code in XAML pages
    • The code behind file of an XAML page
  • Build your first WPF application
    • Get started with WPF project
    • Understanding the WPF project structure
    • Get familiar with XAML Designer
    • Adding controls in XAML
    • Command-line parameters in WPF application
  • Layouts in WPF
    • Using Grid as a WPF panel
    • Using Stack Panel to define stacked layout
    • Using Canvas as a panel
    • Using WPF Dock Panel to dock child elements
    • Using the WrapPanel to automatically reposition
    • Using UniformGrid to place elements in uniform cells
  • WPF property system
  • Data binding in WPF
  • Using Converters while data binding
  • Using triggers in WPF
    • Property trigger
    • Multi trigger
    • Data trigger
    • Multidata trigger
    • Event trigger
主站蜘蛛池模板: 刚察县| 长白| 德阳市| 临沧市| 六枝特区| 伊川县| 五大连池市| 栖霞市| 宜兰市| 兴化市| 四子王旗| 武川县| 白银市| 明溪县| 泸溪县| 定日县| 固安县| 阜南县| 南雄市| 祥云县| 泸西县| 辽宁省| 汉川市| 门头沟区| 阿拉善左旗| 舒兰市| 浦城县| 崇明县| 彩票| 朝阳县| 天镇县| 锡林浩特市| 安西县| 芦山县| 新龙县| 百色市| 广德县| 肇州县| 弥渡县| 衢州市| 灵丘县|