文章出處
文章列表
Xamarin.Forms 把XAML (Extensible Application Markup Language, XAML) 帶進了ios,android的界面開發,也就使得使用Xamarin 做移動開發的代碼重用率進一步提高. 使用Xamarin 做跨平臺的移動開發最好的一個架構模式是MVVM (Model-View-ViewModel),XAML非常適合用于界面的定義,然后連接到后臺代碼,用數據綁定能夠讓代碼更加清晰,并且邏輯代碼能夠很好的公用。
另外Windows 8.1和 Windows phone 8.1也是使用Windows XAML框架進行了統一,這方面的詳細內容可以參考 Windows Phone 8.1 開發技術概覽 (Universal APP)。
Xamarin的官方文檔中也增加這部分的內容,具體可以參看: XAML for Xamarin.Forms – Getting Started with Cross-Platform Markup for Mobile Devices.
主要包括以下5部分:
- Part 1. Getting Started with XAML
- Part 2. Essential XAML Syntax
- Part 3. XAML Markup Extensions
- Part 4. Data Binding Basics
- Part 5. From Data Binding to MVVM
Different XAML layouts for different device orientations in Xamarin.Forms
文章列表
全站熱搜