Exception:从作用域“”引用了“System.Windows.Input.ICommand”类型的变量“command”,但该变量未定义

报错信息

InvalidOperationException: 从作用域“”引用了“System.Windows.Input.ICommand”类型的变量“command”,但该变量未定义
StackTrace:
   在 System.Linq.Expressions.Compiler.VariableBinder.Reference(ParameterExpression node, VariableStorageKind storage)
   在 System.Linq.Expressions.Compiler.VariableBinder.VisitParameter(ParameterExpression node)
   在 System.Linq.Expressions.Compiler.VariableBinder.Visit(Expression node)
   在 System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
   在 System.Linq.Expressions.Compiler.VariableBinder.Visit(Expression node)
   在 System.Linq.Expressions.ExpressionVisitor.VisitConditional(ConditionalExpression node)
   在 System.Linq.Expressions.Compiler.VariableBinder.Visit(Expression node)
   在 System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection`1 nodes)
   在 System.Linq.Expressions.Compiler.VariableBinder.VisitLambda[T](Expression`1 node)
   在 System.Linq.Expressions.Compiler.VariableBinder.Visit(Expression node)
   在 System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator)
   在 KkjQuicker.WPF.Behaviors.CommandBinder.<>c__DisplayClass19_0.<CreateHandler>b__0(FrameworkElement el, ICommand cmd) 位置 D:\project\Visual Studio Community\KkjQuicker\WPF\Behaviors\CommandBehavior.cs:行号 219
   在 KkjQuicker.WPF.Behaviors.CommandBinder.CreateHandler(FrameworkElement element, ICommand command, EventInfo eventInfo) 位置 D:\project\Visual Studio Community\KkjQuicker\WPF\Behaviors\CommandBehavior.cs:行号 226
   在 KkjQuicker.WPF.Behaviors.CommandBinder.AttachEvent(FrameworkElement element, String eventName, ICommand command) 位置 D:\project\Visual Studio Community\KkjQuicker\WPF\Behaviors\CommandBehavior.cs:行号 119
   在 KkjQuicker.WPF.Behaviors.CommandBinder.OnBindingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 位置 D:\project\Visual Studio Community\KkjQuicker\WPF\Behaviors\CommandBehavior.cs:行号 106
   在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.Controls.TextBlock.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   在 System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   在 System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
   在 System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   在 System.Windows.Data.BindingExpression.Activate(Object item)
   在 System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   在 System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   在 MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   在 MS.Internal.Data.DataBindEngine.Run(Object arg)
   在 System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   在 System.Windows.ContextLayoutManager.UpdateLayout()
   在 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   在 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   在 System.Windows.Interop.HwndTarget.OnResize()
   在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

解决方法

暂无解决方案。

相关信息
1 查看
16天7小时前
Quicker版本
版本 反馈次数
1.44.24 1