You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that if a BackstageTabItem is not defined directly in the XAML, it will not be deselected when another BackstageTabItem is selected and the SelectedContent of the BackstageTabControl will not be updated.
It looks like this is because the parent BackstageTabControl is found by calling container.Parent in BackstageTabItem.OnIsSelectedChanged, which will only get the logical parent.
If the BackstageTabItem was created by DataTemplate, it won't have a logical parent, and this will return null.
It may be that this just needs to change from container.Parent to this.TabControlParent (which seems to get the parent control from the visual tree rather than the logical tree).
Environment
Fluent.Ribbon v5.0.1
Windows 10
.NET Framework 4.5
The text was updated successfully, but these errors were encountered:
It seems that if a BackstageTabItem is not defined directly in the XAML, it will not be deselected when another BackstageTabItem is selected and the SelectedContent of the BackstageTabControl will not be updated.
It looks like this is because the parent BackstageTabControl is found by calling container.Parent in BackstageTabItem.OnIsSelectedChanged, which will only get the logical parent.
If the BackstageTabItem was created by DataTemplate, it won't have a logical parent, and this will return null.
It may be that this just needs to change from container.Parent to this.TabControlParent (which seems to get the parent control from the visual tree rather than the logical tree).
Environment
The text was updated successfully, but these errors were encountered: