導航到我的頁面時,我得到一個XamlParseExeption。這個問題似乎是一些與工具TiltEffect或TransitionService:Windows Phone - XamlParseException
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">
您發佈的代碼段沒有任何問題。您能否展示完整的問題複製並確認您正在使用的工具包的版本。 – 2013-03-17 07:44:52
我正在使用WPToolkit的4.2012.10.30版本。如果我在代碼中設置了Toolkit的另一個控件,例如PhoneTextBox,我會得到相同的錯誤。 Toolkit本身似乎有問題? – 2013-03-17 14:52:33