I have seen this a lot and I do not know what that means. I would say this has something to do with namespaces? I was already looking for him, but it was not clear to me what this goal was.
Can someone explain what it is and in what situations it is commonly used?
thanks
change
<Window x:Class="WpfApplication8.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> </Grid> </Window>
But, for example, in the above code, I define x as an alias for the XAML namespace in the third line, although I use the same x on the right in the first line of code. How did this happen? He doesn't care about the order in which things appear?
edit2: Correct me if I am wrong:
Window x: Class = "WpfApplication8.MainWindow"
In the above code, the class received from the window in the namespace x: WpfApplication8.MainWindow will be placed, and
Window x: Name = "abc"
places an instance of the Window class named abc in the namespace x. Is it correct?
If I’m right, if I didn’t use the alias x , where would both the class (first case) and the instance (second) be introduced? Nowhere, a bit like anonymous types? They are used, but where are they not defined?
source share