我在导航到我的页面时收到 XamlParseExeption。问题似乎出在工具包 TiltEffect 或 TransitionService 上:
System.Windows.Markup.XamlParseException
HResult=-2146233087
Message=Unknown parser error: Scanner 2147500037. [Line: 16 Position: 38]
Source=System.Windows
LineNumber=16
LinePosition=38
StackTrace:
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at ContactChooser.ContactChooserPage.InitializeComponent()
at ContactChooser.ContactChooserPage..ctor()
InnerException:
最后一行是第 16 行:
<phone:PhoneApplicationPage
x:Class="ContactChooser.ContactChooserPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d"
shell:SystemTray.IsVisible="True"
toolkit:TiltEffect.IsTiltEnabled="True">