当我导航到我的页面时,我得到一个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">发布于 2013-03-18 04:02:45
我找到了问题所在。我的解决方案中有两个项目:使用TiltEffect的主项目和用于测试主项目的示例项目。这个问题的解决方案是,我需要在两个项目上添加对Toolkit的引用,而不仅仅是在使用组件的项目上。
发布于 2013-03-18 03:37:11
我认为你不应该在整个页面上使用倾斜效果,只应该在你想要启用倾斜的控件上使用。
https://stackoverflow.com/questions/15456201
复制相似问题