【发布时间】:2013-03-17 00:06:30
【问题描述】:
我在导航到我的页面时收到 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">
【问题讨论】:
-
您发布的 sn-p 没有任何问题。您能否展示问题的完整重现并确认您使用的是哪个版本的工具包。
-
我正在使用 WPToolkit 的 4.2012.10.30 版本。如果在我的代码中设置 Toolkit 的另一个控件,例如 PhoneTextBox,我会得到同样的错误。 Toolkit 本身似乎有问题?
标签: xaml windows-phone-8 windows-phone silverlight-toolkit