- Elements and Attributes
XAML:
1< Button Name ="myButton" MouseLeftButtonDown ="OnMouseLeftButtonDownButton" PreviewMouseLeftButtonDown ="OnPreviewMouseLeftButtonDownButton" >
C#:1private System.Windows.Forms.Button button1;
- Namespace
1using System.Windows.Controls;
- 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;