Bug Report B133942
Visible to All Users

Data Binding - Wrong DataContext of items in a NavBarGroup

created 16 years ago

<Window.DataContext>
    <MyModel/>
<Window.DataContext>

<dxn:NavBarGroup GroupStyle="ContainerControl" Header="Gesellschaften">
   <dxn:NavBarGroup.Content>
      <TreeView ItemsSource="{Binding Organisations}"/>
   </dxn:NavBarGroup.Content>
</dxn:NavBarGroup>
DataContext of TreeView should be instance of MyModel and not instance of NavBarGroup containing TreeView.

Comments (1)
Serge (DevExpress Support) 16 years ago

    Hi,
    Thank you for the report. We discovered that the problem has the same nature as the bug described in the report Data Binding - Binding via an element name fails in the NavBarGroup. In particular, a NavBarGroup and its Content aren't added to the NavBar's hierarchy tree.
    We'll try to solve both the problems in the upcoming DXperience v2009 vol 1.
    Thanks,
    Serge

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.