actipro error message: error 5 ???

Docking/MDI for WPF Forum

Posted 14 years ago by Arthur Damen
Version: 9.2.0510
Avatar
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???

<DockPanel>
        <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>
                        </docking:DocumentWindow>
                    </docking:TabbedMdiContainer>
                </docking:TabbedMdiHost>
            </docking:Workspace>
        </docking:DockSite>
    </DockPanel>

<UserControl x:Class="UserControl1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  >
    <docking:DockSite Name="DockWindow"    >
        <docking:SplitContainer Orientation="Horizontal" >
            <docking:ToolWindowContainer Name="B">
                <docking:ToolWindow Name="C" HasTitleBar="False">
                    <Label>aaaaa</Label>
                </docking:ToolWindow>
            </docking:ToolWindowContainer>
            <docking:ToolWindowContainer Name="EE" >
                <docking:ToolWindow Name="DD" >
                    
                </docking:ToolWindow>
            </docking:ToolWindowContainer>
        </docking:SplitContainer>
    </docking:DockSite>
</UserControl>

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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
Avatar
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.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.