Я пытаюсь решить проблемы с производительностью. Текущий гремлин - это моя подсказка, которая выдает:
System.Windows.Data Information: 41 : BindingExpression path error: 'ViewLine3' property not found for 'object' because data item is null. This could happen because the data provider has not produced any data yet. BindingExpression:Path=ViewLine3; DataItem=null; target element is 'TextBlock' (Name='line3ToolTip'); target property is 'Text' (type 'String')
System.Windows.Data Information: 20 : BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=ViewLine3; DataItem=null; target element is 'TextBlock' (Name='line3ToolTip'); target property is 'Text' (type 'String')
System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=ViewLine3; DataItem=null; target element is 'TextBlock' (Name='line3ToolTip'); target property is 'Text' (type 'String')
Для каждого элемента, который ее реализует. Я попытался заставить его замолчать, установив FallbackValue, TargetNullValue, Delay, IsAsync, но проблема остается.
<StackPanel.ToolTip>
<ToolTip>
<StackPanel x:Name="suiteTooltip"
Width="auto">
<TextBlock x:Name="line3ToolTip"
Text="{Binding ViewLine3,
FallbackValue='NoData',
TargetNullValue='NoData',
Delay=500,
IsAsync=True}"/>
</StackPanel>
</ToolTip>
</StackPanel.ToolTip>
Есть ли еще один запасной вариант, о котором я не знаю, который позволил бы мне обрабатывать исключения, генерируемые всплывающей подсказкой.
Примечание. Информация по-прежнему правильно отображается на экране. Эти ошибки появляются только при создании (когда я изменяю модель, которая меняет представление, чтобы создать элемент с этой подсказкой).