XAML

Extensible Application Markup Language (XAML)
Surgido em Junho de 2008
Última versão 16 de Abril de 2010
Criado por Microsoft
Estilo de tipagem Linguagem de marcação
Principais implementações Visual Studio
Influenciada por XML, OpenLaszlo
Extensão do arquivo .xaml

Extensible Application Markup Language ou XAML (pronuncia-se zammel em inglês ou zimel em português; [ˈzæmɫ̩]) é uma linguagem de marcação declarativa feita para facilitar a criação de interfaces em aplicações WPF[1], UWP[2] [3].

Sobre

O XAML foi criado em 2008 pela Microsoft para auxilar o desenvolvimento de interfaces de programas para o Windows[4]. Antes de sua criação para se criar uma interface no Visual Studio era usado o próprio código fonte da GUI[5].

A linguagem é muito usada em aplicações .NET Framework 3.0 & .NET Framework 4.0, Numa típica forma de uso, os ficheiros XML serão produzidos por uma ferramenta de desenho visual, tal como o Visual Studio .NET. O XML resultante será geralmente compilado, apesar de também ser possível a interpretação em tempo de execução.[6][7]

Tem sido dito, erradamente, que o XAML é uma sucessora do HTML. Tal afirmação está incorreta. O XAML não suporta, por exemplo, formulários para enviar informação, capacidade extremamente necessária para que possa substituir o HTML.[carece de fontes?]

O HTML não tem previsão de ser substituído pelo XAML. É mais provável que uma versão mais nova do HTML, que seja compatível com sites existentes, seja criada.

Exemplos

Um código de um botão simples ficaria assim[5]:

<Button Click="ButtonClick">Show updates</Button>

Criação de um texto dizendo "Hello, XAML!"[8]:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="XamlSamples.HelloXamlPage"
             Title="Hello XAML Page">
    <ContentPage.Content>

        <Label Text="Hello, XAML!"
               VerticalOptions="Center"
               HorizontalTextAlignment="Center"
               Rotation="-15"
               IsVisible="true"
               FontSize="Large"
               FontAttributes="Bold"
               TextColor="Blue" />

    </ContentPage.Content>
</ContentPage>

{{fo

Referências

  1. Thraka. «XAML in WPF». docs.microsoft.com (em inglês). Consultado em 22 de dezembro de 2019 
  2. jwmsft. «XAML overview - UWP apps». docs.microsoft.com (em inglês). Consultado em 22 de dezembro de 2019 
  3. «O que é XAML? - The complete WPF tutorial». www.wpf-tutorial.com. Consultado em 21 de dezembro de 2019 
  4. «Introdução a XAML». www.macoratti.net. Consultado em 21 de dezembro de 2019 
  5. a b jillre. «XAML overview - Visual Studio». docs.microsoft.com (em inglês). Consultado em 22 de dezembro de 2019 
  6. jillre. «Design XAML in Visual Studio and Blend». docs.microsoft.com (em inglês). Consultado em 22 de dezembro de 2019 
  7. jillre. «How to create and apply a resource - Visual Studio». docs.microsoft.com (em inglês). Consultado em 22 de dezembro de 2019 
  8. davidbritch. «Parte 1. Introdução ao XAML - Xamarin». docs.microsoft.com. Consultado em 22 de dezembro de 2019 

Read other articles:

Universitas Islam Negeri Ar-RaniryNama sebelumnyaIAIN Ar-RaniryMotoA Bridge For Your Future Career and SpiritualityJenisPerguruan Tinggi Keagamaan Islam NegeriDidirikan05 Oktober 1963Lembaga indukKementerian Agama Republik IndonesiaAfiliasiIslamRektorProf. Dr. Mujiburrahman, M.Ag.[1]AlamatJl. Syeikh Abdul Rauf Darussalam Banda Aceh, 23111, Banda Aceh, Kampus± 50 HaSitus webhttps://uin.ar-raniry.ac.id/ Universitas Islam Negeri Ar-Raniry, disingkat UINAR, merupakan Perguruan Tinggi Kea...

 

Pemandangan piramida utama dari dataran tinggi ke selatan kompleks piramida Giza. Dari kiri ke kanan, tiga yang terbesar adalah: Piramida Menkaure, Piramida Khafre dan Piramida Khufu. Tiga piramida kecil di latar depan merupakan piramida satelit yang terkait dengan piramida Menkaure.Piramida Mesir adalah sebutan untuk sebuah bangunan berbentuk segitiga di Mesir yang merupakan piramida kuno berbentuk dengan struktur dari batu. Pada bulan November tahun 2008, diperkirakan bahwa terdapat 138 ata...

 

العلاقات البوسنية المجرية البوسنة والهرسك المجر   البوسنة والهرسك   المجر تعديل مصدري - تعديل   العلاقات البوسنية المجرية هي العلاقات الثنائية التي تجمع بين البوسنة والهرسك والمجر.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدو...

Pertempuran PrahaBagian dari Perang Tiga Puluh TahunLukisan yang menggambarkan pasukan Swedia di Jembatan Karl, Kota Praha, karya Karel dan Adolf Liebscher tahun 1891Tanggal25 Juli – 1 November 1648LokasiPraha, Kerajaan Bohemia, Monarki Habsburg (kini di Republik Ceko)50°05′11″N 14°24′44″E / 50.08639°N 14.41222°E / 50.08639; 14.41222Koordinat: 50°05′11″N 14°24′44″E / 50.08639°N 14.41222°E / 50.08639; 14.41222Hasil Penja...

 

  هذه المقالة عن محمد الفاسي. لمعانٍ أخرى، طالع الفاسي (توضيح). محمد الفاسي معلومات شخصية الميلاد 1908مفاس الوفاة 1991مالرباط  الجنسية مغربية عضو في مجمع اللغة العربية بدمشق،  وأكاديمية المملكة المغربية[1]،  ومجمع اللغة العربية بالقاهرة[1]  الزوجة مليكة ال

 

U.S. Navy operating force and echelon III command This article appears to contain a large number of buzzwords. There might be a discussion about this on the talk page. Please help improve this article if you can. (April 2017) United States Naval Network Warfare CommandUS NETWARCOM emblemFounded2002CountryUnited StatesBranchUnited States NavyTypeEchelon III commandRoleInformation Operations, Intelligence, Networks, SpacePart ofFleet Cyber CommandGarrison/HQSuffolk, VirginiaNickname(s)NETW...

Mercusuar Fidra Lokasi Pulau Fidra, Lothian Timur, Skotlandia Koordinat 56°04′N 2°47′W / 56.07°N 2.78°W / 56.07; -2.78 Otomatis 1970 Didirikan 1885 Dibangun bata (menara) Bentuk menara Menara silinder dengan balkon dan lentera[1][2] Tinggi 17 meter (56 ft) Tinggi fokus 34 meter (112 ft) Jangkauan 28 kilometer (15 nmi) Karakteristik Fl(4) W 30s Mercusuar Fidra merupakan sebuah mercusuar yang dibangun pada tahun 1985 di pulau Fidra,...

 

Eagle Mountain LakeEagle Mountain LakeShow map of TexasEagle Mountain LakeShow map of the United StatesLocationTarrant / Wise counties, North TexasCoordinates32°53′55.5″N 97°29′58.4″W / 32.898750°N 97.499556°W / 32.898750; -97.499556Primary outflowsLake Worth (Texas)Basin countriesUnited StatesSurface area8,694 acres (3,518 ha)Water volume179,880 acre⋅ft (221.88 hm3)Surface elevation649 ft (198 m)IslandsPelican IslandSettleme...

 

For other uses, see Snow (disambiguation). Photo messaging application SNOWOriginal author(s)Camp MobileDeveloper(s)SNOW Corp.Stable release; iOS 8.2.6 (May 3, 2019; 4 years ago (2019-05-03)[1]) Android .8.2.3 (April 17, 2019; 4 years ago (2019-04-17)[2]) [±] Operating systemAndroidiOSAvailable in9 languagesList of languagesEnglish, Indonesian, Japanese, Korean, Simplified Chinese, Spanish, Thai, Traditional Chinese, VietnameseT...

1985 single by Chris ReaStainsby GirlsSingle by Chris Reafrom the album Shamrock Diaries B-sideAnd When She SmilesReleasedMarch 1985Length3:50LabelMagnetSongwriter(s)Chris ReaProducer(s)Chris Rea, Dave RichardsChris Rea singles chronology Ace of Hearts (1984) Stainsby Girls (1985) Josephine (1985) Music videoStainsby Girls (Official Music Video) on YouTube Stainsby Girls is a song by British singer-songwriter Chris Rea, released in 1985 as the lead single from his seventh studio album Shamroc...

 

Law determining Sierra Leonean nationality Sierra Leone Citizenship ActParliament of Sierra Leone Long title The Sierra Leone Citizenship Act, (No. 4) of 1973, as amended by the Sierra Leone Citizenship Act Amendment (No. 13) of 1976 Enacted byGovernment of Sierra LeoneStatus: Current legislation Sierra Leonean nationality law is regulated by the Constitution of Sierra Leone, as amended; the Citizenship Act, and its revisions; and various international agreements to which the country is ...

 

Igbo soup This article is an orphan, as no other articles link to it. Please introduce links to this page from related articles; try the Find link tool for suggestions. (July 2022) Ofe Owerri is an Igbo delicacy in the South-Eastern part of Nigeria. The soup is made with snails, beef,assorted meat and fishes.[1][2] Origin As  the name implies the soup is popular amongst the people living in the capital of imo state, Owerri.[3] Overview The soup is one of the most&...

This biography of a living person contains unreferenced categories (Category:Hugo Award winners). Please help improve this article by adding citations to reliable sources. Unsourced categories may be challenged and removed. (September 2022) (Learn how and when to remove this template message) American filmmaker and animator Bob PersichettiPersichetti at the 2018 San Diego Comic-ConBornRobert Persichetti Jr. (1973-01-17) January 17, 1973 (age 50)Alma materCalifornia Institute of...

 

You can help expand this article with text translated from the corresponding article in Dutch. (August 2019) Click [show] for important translation instructions. View a machine-translated version of the Dutch article. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikipedia...

 

Railway station in Surrey, England HaslemereGeneral informationLocationHaslemere, WaverleyEnglandCoordinates51°05′20″N 0°43′08″W / 51.089°N 0.719°W / 51.089; -0.719Grid referenceSU897329Managed bySouth Western RailwayPlatforms3Other informationStation codeHSLClassificationDfT category C2HistoryOpened1 January 1859Passengers2017/18 1.777 million Interchange  0.104 million2018/19 1.840 million Interchange  0.102 million2019/20 1.704 millio...

Santa LuziaTVG Vista general de la parada de Santa LuziaUbicaciónBarrio Santa Lucía, VitoriaDatos de la estaciónCódigo LUZAccesibilidad Inauguración 11 de abril de 2023N.º de andenes 2N.º de vías 2Propietario Euskal Trenbide SareaOperador EuskotrenServicios detalladosEuskotren Tranbia TVG Ibaiondo-SalburuaTUVISA 7 Borinbizkarra - Salburua A BEIB BEIG2 Adurtza - SalburuaLíneas « Florida ← TVG → Iliada » [editar datos en Wikidata]Santa Luzia es una parada de la línea I...

 

Indian model (born 1993) Koyal RanaRana posing for Exhibit MagazineBorn (1993-01-04) 4 January 1993 (age 30)Jaipur, Rajasthan, IndiaHeight1.73 m (5 ft 8 in)Beauty pageant titleholderTitleFemina Miss India 2014Femina Miss India World 2014Miss Teen India 2008MTV Scooty Teen DivaFact Miss Universal Teen 2009Years active2008 - presentHair colorBlackEye colorBlackMajorcompetition(s) Femina Miss India 2014(Winner)*Femina Miss India Delhi 2014(Winner)*Miss Teen India 2008(Winner)...

 

Defunct state in northeast Africa Republic of Sudanجمهورية السودان (Arabic)Jumhūrīyat as-Sūdān1956–1969 Flag(1956–1970) Emblem(1956–1970) Anthem: نحن جند الله، جند الوطن (Arabic)Naḥnu Jund Allah, Jund Al-waṭan(English: We are the Soldiers of God, the Soldiers of the Nation) CapitalKhartoumCommon languagesArabicEnglishRegional languagesReligion Sunni IslamChristianityAnimismDemonym(s)SudaneseGovernmentParliamentary republic (1956–...

Romanian literary critic Nicolae Manolescu (in 2012) Nicolae Manolescu (Romanian pronunciation: [nikoˈla.e manoˈlesku]; b. 27 November 1939, Râmnicu Vâlcea) is a Romanian literary critic.[1][2] As an editor of România Literară literary magazine, he has reached a record in reviewing books for almost 30 years.[3] Elected a corresponding member of the Romanian Academy in 1997, he was upgraded to titular member in 2013. During the civil unrest of the 1960s, b...

 

Dravidian language spoken in India IrulaஇருளாNative toIndiaRegionNilgiri MountainsEthnicityIrulaNative speakers11,870 (2011 census)[1]Census conflates some speakers with TamilLanguage familyDravidian South DravidianTamil–KannadaIrula–MudugaIrulaWriting systemTamil scriptLanguage codesISO 639-3iruGlottologirul1243ELPIrulaThis article contains IPA phonetic symbols. Without proper rendering support, you may see question marks, boxes, or other symbols instead of Un...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!