Windows Presentation Foundation Unleashed (2) XAML Demystified

  1. Elements and Attributes
    XAML:
    1<Button Name="myButton" MouseLeftButtonDown="OnMouseLeftButtonDownButton" PreviewMouseLeftButtonDown="OnPreviewMouseLeftButtonDownButton">

    C#:
    1private System.Windows.Forms.Button button1;
  2. Namespace

    1using System.Windows.Controls;
  3. The implicit .NET namespaces
    WPF maps .NET namesapces to XML namesapce. This is a many to one mapping.
     1using System;
     2using System.Collections.Generic;
     3using System.Text;
     4using System.Windows;
     5using System.Windows.Controls;
     6using System.Windows.Data;
     7using System.Windows.Documents;
     8using System.Windows.Input;
     9using System.Windows.Media;
    10using System.Windows.Media.Imaging;
    11using System.Windows.Shapes;

 

    

posted @ 2007-11-15 18:08  许晓光  阅读(235)  评论(0)    收藏  举报