English 中文(简体)
视力演播室中应用WPF的许多具有约束力的错误?
原标题:Many binding errors in visual studio with WPF application?

当我对我的视力演播室表示许多具有约束力的错误时,例如这里的错误:

任何人都知道为什么发生这种情况? 地雷的同事也有这些具有约束力的错误,但与我一样。

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=PlanningCd; DataItem=null; target element is TextBlock (Name= planningSchema ); target property is NoTarget (type Object )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=PlanningCd; DataItem=null; target element is TextBlock (Name= planningSchema ); target property is Text (type String )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=Measurements; DataItem=null; target element is ItemsControl (Name= MeasurementAndTimeControl ); target property is ItemsSource (type IEnumerable )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=Foreground; DataItem=null; target element is ItemsControl (Name= MeasurementAndTimeControl ); target property is Foreground (type Brush )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=PlanningCd; DataItem=null; target element is TextBlock (Name= planningSchema ); target property is NoTarget (type Object )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=PlanningCd; DataItem=null; target element is TextBlock (Name= planningSchema ); target property is Text (type String )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=OtherParams; DataItem=null; target element is ItemsControl (Name= ); target property is ItemsSource (type IEnumerable )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=Foreground; DataItem=null; target element is ItemsControl (Name= ); target property is Foreground (type Brush )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=IsSelected; DataItem=null; target element is ContentPresenter (Name= ); target property is NoTarget (type Object )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=Foreground; DataItem=null; target element is Grid (Name= ); target property is Foreground (type Brush )

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=Measurements; DataItem=null; target element is ItemsControl (Name= MeasurementAndTimeControl ); target property is ItemsSource (type IEnumerable )

最佳回答

如同许多错误一样,看上去是一个称为规划的内容。 Schema。 首先,我要在这项具有约束力的文件中增加以下内容。 您还可以随行一名真正的转变者,他们只是为了扼杀(或至今)。 然后,你可以 de倒转手(或你可能发现,甚至没有变换)。 如果小贩在XAML中工作的话,那将是空洞的。

    PresentationTraceSources.TraceLevel="High 
问题回答

地雷的同事也有这些具有约束力的错误,但与我一样。

您的同事可以在他的视觉演播室中以不同的方式确定一些事项:

Look in Tools > Options > Debugging > Output Window > WPF Trace Settings. Here you can set the level of debugging trace output (between Off and Verbose) and also set the subject matter of output, eg. Animation, Data Binding, etc.

如@Blam提到的那样,你也可以使用 页: 1

进一步的变化可能是因为你可能拥有





相关问题
WPF convert 2d mouse click into 3d space

I have several geometry meshes in my Viewport3D, these have bounds of (w:1800, h:500, d:25). When a user clicks in the middle of the mesh, I want the Point3D of (900, 500, 25)... How can I achieve ...

Editing a xaml icons or images

Is it possible to edit a xaml icons or images in the expression design or using other tools? Is it possible to import a xaml images (that e.g you have exported) in the expression designer for editing?...

WPF: writing smoke tests using ViewModels

I am considering to write smoke tests for our WPF application. The question that I am faced is: should we use UI automation( or some other technology that creates a UI script), or is it good enough to ...

WPF - MVVM - NHibernate Validation

Im facing a bit of an issue when trying to validate a decimal property on domain object which is bound to a textbox on the view through the viewmodel. I am using NHibernate to decorate my property on ...

How do WPF Markup Extensions raise compile errors?

Certain markup extensions raise compile errors. For example StaticExtension (x:Static) raises a compile error if the referenced class cannot be found. Anyone know the mechanism for this? Is it baked ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签