Ugrás a tartalomhoz

.NET Programming Technologies

Gergely Kovásznai, Csaba Biró

Eszterházy Károly College

XAML namespaces

XAML namespaces

The previous examples shows that the Page and the Window root elements – in any case – define two namespaces:

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml

  1. The default WPF namespace including the WPF classes (controls) need for building of the user interface.

  2. XAML –namespace. It includes general definitions necessary for the interpretation of the XAML documents. It is interesting that the namespace with a prefix x has a wider view.

The role of the xmlns – a special attribute – is to give a local name (pseudonym) to the URI (Uniform Resource Locator) form namespace.