Posted 16 years ago
by Arthur Damen
Version: 9.1.0505
Platform: .NET 3.5
Environment: Windows Vista (64-bit)

Hi,
I'm getting the following errors when running an application with a NavigationBar.The errors can simply be reproduced by running the following xaml code and minimizing the Navigation Bar. There isn't an exception thrown, but the errors should appear in the error output window.
Also the actipro sample projects generates these errors and they even appear to be interfering with the commandbindings of a ribbonwindow, because when the navigationbar is used in combination with the ribbonbar, that uses ribboncommands that binds on window level, all commands are disabled.
When the commandbinding takes place in the ribbonbar, the commands aren't affected.
Is there a workaround for this problem?
Kind regards,
I'm getting the following errors when running an application with a NavigationBar.
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=ToolTip; DataItem='Button' (Name='toggleMinimizationButton'); target element is 'Button' (Name='toggleMinimizationButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=ToolTip; DataItem='NavigationBarMinimizedPopupToggleButton' (Name='PART_ContentArea'); target element is 'NavigationBarMinimizedPopupToggleButton' (Name='PART_ContentArea'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=ToolTip; DataItem='Button' (Name='toggleMinimizationButton'); target element is 'Button' (Name='toggleMinimizationButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.Navigation.NavigationBar', AncestorLevel='1''. BindingExpression:Path=Title; DataItem=null; target element is 'Button' (Name='toggleMinimizationButton'); target property is 'ToolTip' (type 'Object')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=ToolTip; DataItem='Button' (Name='toggleMinimizationButton'); target element is 'Button' (Name='toggleMinimizationButton'); target property is 'Name' (type 'String')
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:navigation="http://schemas.actiprosoftware.com/winfx/xaml/navigation"
Title="Window1" Height="300" Width="300">
<navigation:NavigationBar>
</navigation:NavigationBar>
</Window>
When the commandbinding takes place in the ribbonbar, the commands aren't affected.
Is there a workaround for this problem?
Kind regards,