【Win8視界網消息】距離Windows 8.1公眾預覽版發佈已接近一個月,近日微軟為Windows 8應用的開發者們帶來瞭一些有用的提示,希望能幫助他們充分利用到Windows 8.1中的新功能,在RTM版發佈之前及時調整應用開發工作。
近日,微軟在其Windows App Builder博客上發佈瞭一篇技術性很強的文章《Windows 8 to Windows 8.1 Preview starting with the XAML templates》,文章中提到:Windows 8.1去掉瞭"過程生命周期管理"(Process Lifetime Management)導航的LayoutAwarePage類,轉向分割其默認的視圖模型(view model)、導航處理(handled navigation)和狀態特征維護(maintained state features)。微軟表示這給瞭開發者更多可定制的模型。SuspensionManager類仍圍繞於過程生命周期管理,不過Windows 8.1還加入瞭新的NavigationHelper類。
博客中還提到瞭Windows 8.1應用中的一些樣式(styles)和數據模板(data templates)的變化。Windows 8.1預覽版有兩個新的項目模板(item templates)——即Hub Page和Setting Flyout。此外,該博客還提供瞭Windows 8.1對於特定的應用制作的變化,以及它們能夠去掉的Windows 8應用中的某些舊組件。
原文:Windows 8 to Windows 8.1 Preview starting with the XAML templates