December 2018
Beginner to intermediate
668 pages
15h 30m
English
XAML simplifies C# code, especially when building a user interface.
Imagine that you need two or more buttons laid out horizontally to create a toolbar. In C#, you might write this code:
var toolbar = new StackPanel(); toolbar.Orientation = Orientation.Horizontal; var newButton = new Button(); newButton.Content = "New"; newButton.Background = new SolidColorBrush(Colors.Pink); toolbar.Children.Add(newButton); var openButton = new Button(); openButton.Content = "Open"; openButton.Background = new SolidColorBrush(Colors.Pink); toolbar.Children.Add(openButton);
In XAML, this could be simplified to the following lines of code. When this XAML is processed, the equivalent properties are set, and methods are called to ...
Read now
Unlock full access