windows phone 8.0 app 移植到windows10 app 页面类

时间:2024-11-13 09:03:50

phone:PhoneApplicationPage    全部替换为Page

phone:WebBrowser               全部替换为   WebView

IsScriptEnabled="True"           空格

SupportedOrientations="Portrait"     空格

Orientation="Portrait"     空格

Orientation="Landscape"  空格

shell:SystemTray.IsVisible="True"  空格

shell:SystemTray.IsVisible="False"

using Microsoft.Phone.Controls;

using Microsoft.Phone.Shell;

xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"     空格

xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"  空格

using System.Windows.Controls;             替换为   using Windows.UI.Xaml.Controls;

DoubleTap="       DoubleTapped="   //注意要早于Tap 的替换

Tap=                             IsTapEnabled="True" Tapped=

using System.Windows.Navigation;                               using Windows.UI.Xaml.Navigation;

using System.Windows.Media.Imaging;                      using Windows.UI.Xaml.Media.Imaging;

using System.Windows.Controls.Primitives;                 using Windows.UI.Xaml.Controls.Primitives;

using System.Windows.Media                        using Windows.UI.Xaml.Media;

System.Windows                                                          Windows.UI.Xaml

System.Windows.Input.GestureEventArgs              TappedRoutedEventArgs

phone:Panorama         Pivot

phone:Pivot                 Pivot

toolkit:PhoneTextBox           TextBox

关于Border 的移植