第一次偶然出现的“PresentationFramework.dll”类型的异常
报错:
在 System.Windows.Markup.XamlParseException 中第一次偶然出现的“PresentationFramework.dll”类型的异常
其他信息: “设置属性“System.Windows.Controls.ItemsControl.ItemsPanel”时引发了异常。”,行号为“261”,行位置为“14”。
- XML code
<ItemsPanelTemplate x:Key="filledInfoItemsPanelEaseTemplate"> <VirtualizingStackPanel IsItemsHost="True" Height="35" VerticalAlignment="Top"> <i:Interaction.Behaviors> <ei:FluidMoveBehavior AppliesTo="Children"> <ei:FluidMoveBehavior.EaseY> <PowerEase EasingMode="EaseOut" Power="7"/> </ei:FluidMoveBehavior.EaseY> </ei:FluidMoveBehavior> </i:Interaction.Behaviors> </VirtualizingStackPanel> </ItemsPanelTemplate>
项目是WPF控件库,运行报错,但是在WPF的应用程序中就没问题,所以是不是只能用在应用程序中呢?如果是只能在应用程序中使用,那么又该怎么实现缓动效果呢?
[解决办法]
对于你的这个错误应该是你使用的WPF控件库问题。
缓动效果可以通过Blend动画设置或者DoubleAnimation。
参考以下文章:http://www.silverlightchina.net/html/tips/2010/0317/854.html
[解决办法]
我的错误发现了原来是我自己不小心输入了一个字符引起的。