2012-01-13 43 views
0

私のコントロールが自己バインドするので、私はこのようなエラーがあります。私が知る限り何も傷つけることはありませんが、私はこれについて心配する必要があるのだろうか?バインディングエラーとコンバーターエラー。何とか私はそれらを処理する必要がありますか?

System.Windows.Data Error: BindingExpression path error: 'CanNavigateLast' property not found on 'Infrastructure.Controls.Lookup.LookupViewModel' 'Infrastructure.Controls.Lookup.LookupViewModel' (HashCode=21405046). BindingExpression: Path='CanNavigateLast' DataItem='Infrastructure.Controls.Lookup.LookupViewModel' (HashCode=21405046); target element is 'Infrastructure.Controls.DitatToolbar' (Name=''); target property is 'CanNavigateLast' (type 'System.Boolean')..

またはこれです。私はそれがnullであることを知っていて、何の問題も生じないようですが、それが問題なのでしょうか?

System.Windows.Data Error: 'MS.Internal.Data.DynamicValueConverter' converter failed to convert value 'null' (type 'null'); BindingExpression: Path='FilterFrom' DataItem='Infrastructure.Controls.Lookup.FilterBoxRow' (HashCode=57480441); target element is 'System.Windows.Controls.NumericUpDown' (Name=''); target property is 'Value' (type 'System.Double').. System.InvalidOperationException: Can't convert type null to type System.Double. at MS.Internal.Data.DynamicValueConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture) at System.Windows.Data.BindingExpression.ConvertToTarget(Object value).

+0

エラーを残すことはありません。古いごみのようなものです。ごみIN = Garbage OUT ..明らかにエラーがあります。たとえば、nullをdoubleに変換します。これらのエラーに対応するコードを貼り付けて、あなたが持っている問題を修正してください..? – MethodMan

答えて

2

理想的には、エラーのこれらの種類心配する必要はありません。この

しかし

のようなエラーがあってはなりません。無効なバインディングは、(パフォーマンスが大幅に低下する)例外として扱われないため、決して傷ついていません。パフォーマンス上の問題などはありません

trace listenerでビジュアルスタジオの出力ウィンドウに表示されているようなものですが、通常のアプリケーションでは表示されませんが、トレースリスナーは存在しないため、表示されません失敗したバインディングの影響。

関連する問題