* 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, localeTitle
title | localeTitle |
---|---|
Xaml | XAML |
XAML:可扩展的应用程序标记语言
XAML发音为“Zammel”是由Microsoft开发的标记语言。该标记语言主要用于设计GUI。它在工作流程中的可用性也很受欢迎。
Silverlight,移动开发,WPF(Windows Presentation Foindation),Windows Store等领域大量使用XAML,跨越任何CLR和.NET框架
它是一种语言并且回答什么和如何。它旨在将行为与设计器代码分开。
例
创建具有多个属性的TextBlock。 TextBlocks通常用于输出文本,非常类似于.NET框架的旧版本中的Labels。
<TextBlock Text="I am a TextBlock!"
HorizontalAlignment="Left"
FontSize="25"
FontWeight="Bold"
Margin="50,10,0,0" />
例2
以下示例显示了带有“Hello World!”的标签。作为其顶级容器中的内容,称为UserControl。
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Label Content="Hello World!" />
</UserControl>