Completed
Last Updated: 04 Jun 2018 19:29 by Anthony
ADMIN
Vladimir Stoyanov
Created on: 13 Feb 2018 12:18
Category: PanelBar
Type: Bug Report
1
PanelBar: DataContext is not inherited properly to PaneBarItems when in RadTabControl and theme is Material or Fluent
When a control is nested in a RadPanelItem, it is wrapped in another RadPanelBarItem. The DataContext of the second level item is not inherited correctly. As a workaround, you can bind directly to the element which holds the DataContext with an ElementName binding. 
7 comments
Anthony
Posted on: 04 Jun 2018 19:29
Thank you Ralitsa!
ADMIN
Ralitsa
Posted on: 04 Jun 2018 10:54
Hi,

The fix for the issue will be available in next LIB version (2018.2.604). It will also be included in our next official version – R2 2018 SP1, scheduled for the end of June.

Best regards,
Ralitsa Kumanova
Anthony
Posted on: 31 May 2018 16:16
Thank you. That's a more palatable option.

I'm glad this is getting worked on for an internal build. I usually update to the internal builds fairly often, so I look forward to trying the fix out.
ADMIN
Petar Mladenov
Posted on: 31 May 2018 14:22
We discussed the priority of this issue once again and we also scheduled a bug fix for the incoming internal build next week.

On a side note , another workaround could be to wrap the UIElement defined as child of RadPanelBarItems in other RadPanelBarItems' Headers. This way the UIElement will have proper Logical Parent - RadPanelBarItem and its DataContext will be inherited properly.

Here is the example:

<RadPanelBar>
    <RadPanelBarItem Header="Root Item">
        <Button Content="Simple Button" />

In this case the Button has logical parent - RadPanelBarItem but is automatically wrapped internally in other new RadPanelBarItem (which is ItemsControl) which is his visual parent but not logical one.

To proper inherit DataContext, if you use 2018 R2 version, you can use the following code:

<RadPanelBar>
    <RadPanelBarItem Header="Root Item">
         <RadPanelBarItem
              <RadPanelBarItem.Header>
                  <Button Content="Simple Button" />

which will produce the same visual result.
Anthony
Posted on: 28 May 2018 13:01
Not a chance, sloppy programming to workaround a product bug is not an option. The fluent theme is unusable because of this.
ADMIN
Petar Mladenov
Posted on: 28 May 2018 11:33
The issue is not scheduled for the incoming R2 2018 SP Release in June. 
We encourage you to set the DataContext of the problematic element directly.
Anthony
Posted on: 16 May 2018 13:16
Is this scheduled to be fixed for the 2Q release? I'd really like to use the Fluent theme.