简体   繁体   中英

XAMl version Syntax in Windows Store apps and Windows Phone?

AS known in Windows Store apps and Windows Phone apps i can write my views using XAML , so i have aquestion:

are XAMl of every type of apps is based on specific version of silverlight? or it is isolated versionof XAML . for example is there XAMl for Windows Store apps which is not aversion of SIlver Light?

The short answer: yes, you're using XAML pretty much the same way as you're using it in Silverlight, for both platforms.

A bit longer answer: XAML for Windows Store apps is a bit of different beast than for Windows Phone. For Windows Store apps, XAML is basically compiles to the unmanaged code. For WP (7 and 8) it's mostly the Silverlight as of ver. 3 with some of difference (much poorer reflection support in WP, for example). For a full list of differences between standard Silverlight and WP version, see here .

But the biggest difference is that XAML for WP still belongs to managed code. This means XAML for WP and W8 are not binary compatible. But the good thing is that they're sharing biggest part of the controls. Microsoft has a couple of articles describing differences, similarities, and possible approaches to reuse the code between these 2 platforms, take a look here and here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM