actipro error message: error 5 ???

Docking/MDI for WPF Forum

Posted 14 years ago by Arthur Damen
Version: 9.2.0510
I have a window with a docksite. In inside this I add a usercontrol that has itself again a docksite.

when running i get an actipro error:
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=Title; DataItem='ToolWindow' (Name='DD'); target element is 'ToolWindow' (Name='DD'); target property is 'Name' (type 'String')

What could be wrong???

        <docking:DockSite x:Name="MainDockSite" AreDocumentWindowsDestroyedOnClose="False" AutoHidePerContainer="False">
            <docking:Workspace  HorizontalAlignment="Stretch" >
                <docking:TabbedMdiHost Name="MDIPresentationsWindow" >
                    <docking:TabbedMdiContainer Name="MDITabContainer" >
                        <docking:DocumentWindow Name="DocWIndowPage1" Title="Page1">
                            <loc:UserControl1 x:Name="AA"></loc:UserControl1>

<UserControl x:Class="UserControl1"
    xmlns:x=""  >
    <docking:DockSite Name="DockWindow"    >
        <docking:SplitContainer Orientation="Horizontal" >
            <docking:ToolWindowContainer Name="B">
                <docking:ToolWindow Name="C" HasTitleBar="False">
            <docking:ToolWindowContainer Name="EE" >
                <docking:ToolWindow Name="DD" >

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Arther,

You indicated that this problem exists in Docking & MDI v9.2.510, is that correct? I tested with 510 and I do not see the issue (as it should have been fixed in that version). This issue was present in 507 and any eariler builds, but can be safely ignored. By default, the AutomationProperties.Name property of the ToolWindow is bound the Title property. But the AutomationProperties.Name does not allow null values, which results in the binding error you are seeing. The binding will still work if the Title is eventually set to a non-null string.

Actipro Software Support

Posted 14 years ago by Arthur Damen
Thanks for your reply.

Indeed after checking the references again they were refering to 507 and not the newest version we installed yesterday.

Have nice holidays!
The latest build of this product (v24.1.2) 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.