Files
freeCodeCamp/guide/chinese/csharp/xaml/index.md
Randell Dawson 0a1eeea424 fix(guide) Replace invalid prism code block names (#35961)
* 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
2019-05-15 19:08:19 +02:00

1.4 KiB
Raw Blame History

title, localeTitle
title localeTitle
Xaml XAML

XAML可扩展的应用程序标记语言

XAML发音为“Zammel”是由Microsoft开发的标记语言。该标记语言主要用于设计GUI。它在工作流程中的可用性也很受欢迎。

Silverlight移动开发WPFWindows Presentation FoindationWindows 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> 

更多信息: