I'm new to XAML. And I wonder what all the x: and :x are all about. Tutorials about XAML does not explain this (or I haven't read enough yet).
For example:
<Window x:Class="WpfTutorialSamples.WPF_Application.ResourceSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
Title="ResourceSample" Height="150" Width="350">
<Window.Resources>
<sys:String x:Key="strHelloWorld">Hello, world!</sys:String>
</Window.Resources>
<StackPanel Margin="10">
<TextBlock Text="{StaticResource strHelloWorld}" FontSize="56" />
<TextBlock>Just another "<TextBlock Text="{StaticResource strHelloWorld}" />" example, but with resources!</TextBlock>
</StackPanel>
</Window>
What does x mean in these lines?
- Window x:Class="WpfTutorialSamples.WPF_Application.ResourceSample"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" sys:String
- x:Key="strHelloWorld">Hello, world!