DataBinding error in latest build

Docking/MDI for WPF Forum

Posted 14 years ago by SledgeHammer01
Version: 10.2.0531
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
Avatar
Not sure exactly where this is coming from, but with the latest build, we are suddenly getting this binding error upon start up. Our setup is a ribbon window with 2 docking windows in a tabbed layout on the left.


System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.Docking.ToolWindowContainer', AncestorLevel='1''. BindingExpression:Path=SelectedItem; DataItem=null; target element is 'DockingWindowTabPanel' (Name=''); target property is 'SelectedTab' (type 'UIElement')

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

As long as the tabs of the ToolWindowContainer and it's ToolWindows is displaying correctly, then you can safely ignore this warning. These "errors" are often output even though the visual tree has not been fully constructed, at which point the binding resolves fine.

In the recent release, we move the DockingWindowTabPanel definition into the ToolWindowContainer.ItemsPanel, instead of defining it directly in the control template. This fixed a few issues with inherited properties not working properly when switching themes.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.