所以我決定從Windows Phone 8.0遷移到Windows Phone 8.1 API - 不是silverlight。 原因是我想使用Silverlight 8.1或WP 8.0不支持的Win2D繪圖庫。奇怪的事情正在發生。 簡單樞軸視圖令人難以置信的滯後,也不能正確顯示視圖。 我使用最新的Visual Studio 2015年在我聯繫你可以看到以下頁面XAML代碼(只是用於測試)的結果視頻:Windows Phone 8.1 Pivot有什麼問題? (WinRT - 不是Silverlight)
<Page
x:Class="Apptest2.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Apptest2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Grid.Column="0">
<Button Content="Go"
/>
</StackPanel>
<Pivot Grid.Row="1"
x:Name="PivotView"
Margin="10,0,10,15"
CacheMode="BitmapCache"
VerticalContentAlignment="Stretch">
<PivotItem Header="item1">
<Grid Background="BlueViolet" />
</PivotItem>
<PivotItem Header="item2">
<Grid Background="BlueViolet" />
</PivotItem>
<PivotItem Header="item3">
<Grid Background="BlueViolet" />
</PivotItem>
<PivotItem Header="item4">
<Grid Background="BlueViolet" />
</PivotItem>
<PivotItem Header="item5">
<Grid Background="BlueViolet" />
</PivotItem>
<PivotItem Header="item6">
<Grid Background="BlueViolet" />
</PivotItem>
</Pivot>
</Grid>
</Page>
有沒有人能告訴什麼是怎麼回事?我是否應該使用來自第三方的一些數據透視類似物,或者可能忘記在新的操作系統中使用它? 拔出我的頭髮。 任何解決方案將非常感激!
非常感謝。我仍然在學習wp和WinRT框架。不過有趣的是,wp 8.0上的相同代碼使其工作沒有任何問題 –