XAML is widely used in most .NET Technologies like WPF , Store Apps ( UWP ) , Microsoft HoloLens , Xamarin etc. So its very important to learn XAML in detail if you want to Write Softwares or Apps like
- Android Apps using C#
- iOS Apps using C#
- Microsoft HoloLens Apps
- Windows 10 Apps
Whenever you make some control in XAML you set its properties. For example in following screen shot we are making a button in XAML and setting its properties like:
- Name
- Horizontal Alignment
- Margin
- Background
- Vertical Alignment
- Horizontal Alignment
have you ever noticed that when you type in for setting the properties like ,
Now I'm going to show you the alternate way to set properties using C# syntax. To make a button from C# write following code in Page Load Event in program.
- HorizontalAlignment
- Background properties
Answer is ! XAML parser does this job.
XAML parser convert string value into a strongly typed version of that value. So when you set the properties like < horizontalAllignment = "Left" > , the string "Left" will be mapped to the strongly typed enum by the XAML parser.




Asfend YarPosted Jan 27, 2016, 2:06 AM
Nice work ..
Jaco ZwartsPosted Jan 25, 2016, 2:20 PM
Nice, thank you for this article
Santhakumar MunuswamyPosted Jan 24, 2016, 11:03 AM
Thanks for nice share