Files
freeCodeCamp/guide/portuguese/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.6 KiB

title, localeTitle
title localeTitle
Xaml Xaml

XAML: Extensible Application Markup Language

XAML pronunciado como "Zammel" é uma linguagem de marca desenvolvida pela Microsoft. Essa linguagem de marcação é usada principalmente para projetar GUIs. Também é popular pela sua usabilidade no fluxo de trabalho.

Áreas como Silverlight, Desenvolvimento Móvel, WPF (Windows Presentation Foindation), Windows Store usam o XAML muito e abrangem qualquer estrutura CLR e .NET

É uma linguagem declarativa e responde o que e como. Destina-se a separar o comportamento do código de designer.

Exemplo

Criando um TextBlock com várias propriedades. TextBlocks geralmente são empregados para a saída de texto, muito parecido com Labels em versões mais antigas do .NET framework.

<TextBlock Text="I am a TextBlock!" 
    HorizontalAlignment="Left" 
    FontSize="25" 
    FontWeight="Bold" 
    Margin="50,10,0,0" /> 

Exemplo 2

O exemplo a seguir mostra um rótulo com "Hello World!" como seu conteúdo em um contêiner de nível superior chamado UserControl.

<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> 
    <Label Content="Hello World!" /> 
 </UserControl> 

Mais Informações: