tabatabaeefar
جمعه 28 بهمن 1390, 10:48 صبح
سلام
من یه برنامه با blend طراحی کردم.
وقتی اونو توی vs باز میکنم این پیغام رو میده:
'System.Windows.Media.Animation.DoubleAnimationUsi ngKeyFrames' animation object cannot be used to animate property 'RuntimeEffect' because it is of incompatible type 'System.Windows.Media.Effects.Effect'.
لطفا راهنماییم کنید.
ممنون
Amir Oveisi
شنبه 29 بهمن 1390, 13:12 عصر
این انیمیشن در زمان اجرای برنامه به درستی اجرا میشه آیا؟
tabatabaeefar
شنبه 29 بهمن 1390, 23:41 عصر
بله. انیمیشن به درستی اجرا میشه.
حتی برنامه هم دیباگ میشه.
متن کامل خطا اینجوریه:
'System.Windows.Media.Animation.DoubleAnimationUsi ngKeyFrames' animation object cannot be used to animate property 'RuntimeEffect' because it is of incompatible type 'System.Windows.Media.Effects.Effect'.
at System.Windows.Media.Animation.Storyboard.VerifyAn imationIsValid(DependencyProperty targetProperty, AnimationClock animationClock)
at System.Windows.Media.Animation.Storyboard.ProcessC omplexPath(HybridDictionary clockMappings, DependencyObject targetObject, PropertyPath path, AnimationClock animationClock, HandoffBehavior handoffBehavior, Int64 layer)
at System.Windows.Media.Animation.Storyboard.ClockTre eWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
at System.Windows.Media.Animation.Storyboard.ClockTre eWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
at System.Windows.Media.Animation.Storyboard.BeginCom mon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer)
at System.Windows.VisualStateGroup.StartNewThenStopOl d(FrameworkElement element, Storyboard[] newStoryboards)
at System.Windows.VisualStateManager.GoToStateInterna l(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, Boolean useTransitions)
at System.Windows.VisualStateManager.GoToStateCommon( FrameworkElement control, FrameworkElement stateGroupsRoot, String stateName, Boolean useTransitions)
at System.Windows.VisualStateManager.GoToState(Framew orkElement control, String stateName, Boolean useTransitions)
at System.Windows.Controls.Primitives.ButtonBase.Chan geVisualState(Boolean useTransitions)
at System.Windows.Controls.Control.UpdateVisualState( Boolean useTransitions)
at System.Windows.Controls.Control.OnPostApplyTemplat e()
at System.Windows.FrameworkElement.ApplyTemplate()
at Microsoft.Expression.Platform.WPF.WpfViewNodeManag er.EnsureElementInDictionary(Object root, ViewNode knownAncestor)
و اینم یه تصویر:
82896
مهدی فرزاد
پنج شنبه 04 اسفند 1390, 09:36 صبح
سلام
قبلا زیاد در این مورد بحث شده
VS در بعضی مواقع توانایی نمایش کدهایی رو که در Blendایجاد شده رو نداره(vs برای نمایش گرافیک برنامه بهینه نشده)
در بعضی مواقع با تغییر دانت به دانت نت 4 این مشکل حل میشه اما نه همیشه
شما نگران این مورد نباشید
خروجی کار درسته
و شما میتونید برای دیدن ظاهر برنامه از همون Blend استفاده کنید
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.