* fix: replace sh with shell fix replace terminal with shell fix replace node with js fix replace output with shell fix replace cs with csharp fix replace c++ with cpp fix replace c# with csharp fix replace javasctipt with js fix replace syntax with js fix replace unix with shell fix replace linux with shell fix replace java 8 with java fix replace swift4 with swift fix replace react.js with jsx fix replace javascriot with js fix replace javacsript with js fix replace c++ - with cpp fix: corrected various typos fix: replace Algorithm with nothing fix: replace xaml with xml fix: replace solidity with nothing fix: replace c++ with cpp fix: replace txt with shell fix: replace code with json and css fix: replace console with shell
1.4 KiB
1.4 KiB
title
title |
---|
Xaml |
XAML: Extensible Application Markup Language
XAML pronounced as "Zammel" is a mark language developed by Microsoft. This markup language is mainly used for designing GUIs. Also it is popular for its usability in workflow.
Areas like Silverlight, Mobile Development, WPF (Windows Presentation Foindation), Windows Store uses XAML heavily and span accross any CLR and .NET framework
Its a declaritive language and answers WHAT and HOW. It aims at separating the behavior from the designer code.
Example
Creating a TextBlock with several properties. TextBlocks are usually employed for the output of text, much like Labels in older versions of the .NET framework.
<TextBlock Text="I am a TextBlock!"
HorizontalAlignment="Left"
FontSize="25"
FontWeight="Bold"
Margin="50,10,0,0" />
Example 2
The following example shows a label with "Hello World!" as its content in a top level container called UserControl.
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Label Content="Hello World!" />
</UserControl>