What are the xmlns = [some url] attributes at the beginning of xaml WPF files?

At the beginning of xaml, I noticed that we have things like

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

The only other use I see for xmlns is importing namespaces from my assemblies. Are these also examples of importing an assembly? From the url? If not, what are they referring to? What to do if the computer is not connected to the Internet?

+3
source share
2 answers

this is not related to xaml, but to xml in general.

The purpose of namespaces is to be able to uniquely identify xml objects.

look here .

For example, it allows you to have two β€œclients” node with different namespaces. Programs can then tell if it is a node client from system A or system B.

#. "" System.Windows, System.Windows.Forms System.Web.Ui... , "" .

, , . - freetext, http://- , uri .

+2

XAML-/ WPF :

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

XAML, () x:.

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

, x: , XAML, WPF - , XAML XAML. WPF , XAML, WPF .

x: XAML , SDK. XAML , WPF. , XAML , x: Class XAML. , XAML, , x: Key,

http://msdn.microsoft.com/en-us/library/ms747086.aspx

0

All Articles