Docking Manager: Header Foreground properties are not applied
Hello there,
I'm using the DockingManager in a WPF project with the following specifics:
- .NET 4.6.1
- Syncfusion packages on version 17.3.0.30
I'm using the the following XAML code:
<syncfusion:DockingManager
x:Name="DockingManager"
DockFill="True"
PersistState="True"
IsAnimationEnabledOnMouseOver="False"
IsVS2013SidePanelEnable="True"
HeaderBackground="LightGray"
HeaderForeground="White"
HeaderMouseOverBackground="LightSkyBlue"
SelectedHeaderBackground="DarkBlue"
HeaderForegroundSelected="White"
Loaded="DockingManager_OnLoaded">
And I'm noticing that the background color is applied correctly, however the Foreground is not. The icons/buttons do change color but the header text does not. When I add a separate style for the Header, I'm noticing the same behaviour. Is this a known issue on your side, or am I still doing something wrong?
I'm setting the header text using theDockingManager.Header property.
Kind regards,
Floris Verhoeven
SIGN IN To post a reply.
5 Replies
FV
Floris Verhoeven
December 3, 2019 10:22 PM UTC
Hello,
Please note I'm also running the following code during application startup:
SfSkinManager.ApplyStylesOnApplication = true;
SfSkinManager.SetVisualStyle(mainWindow, VisualStyles.Office365);
During further testing, I've found that removing this code, fixes the issues. The Foreground color is now correctly applied on the Docking Manager header text.
I would however prefer to keep globally applying that VisualStyle, I still think this behaviour is unexpected.
Kind regards,
Floris Verhoeven
NI
Ninja
Syncfusion Team
December 4, 2019 12:30 PM UTC
Hi Floris Verhoeven,
Thanks for contacting Syncfusion support.
We are analyzing query regarding “ Foreground is not updated in DockingManager WPF” and we will update you on 6th December 2019.
Regards,
Niranjan Kumar
NI
Ninja
Syncfusion Team
December 5, 2019 12:58 PM UTC
Hi Flora,
Thanks for your patience.
We have analyzed your query regarding “Foreground is not updated in DockingManager WPF” and we are unable to reproduce the issue in your reported weekly Nuget version. We have included the below code in the code snippet that you have removed to fix your issue and it still works. We have attached the sample for your reference. Please let us know if you have any queries.
C#:
|
private void DockingManager_OnLoaded(object sender, RoutedEventArgs e)
{
SfSkinManager.ApplyStylesOnApplication = true;
SfSkinManager.SetVisualStyle(mainwindow, VisualStyles.Office365);
} |
Regards,
Niranjan Kumar
FV
Floris Verhoeven
December 5, 2019 01:11 PM UTC
Hello,

Attachment: Flora_9272e1ec.zip
I was able to reproduce the issue with your sample.
I was however forced to remove the package references and re-add them. You were using a beta package I did not have access too. Also I added the O365 Theme package which seemed to be missing.
Please find my sample attached.
Kind regards,
Floris Verhoeven
Attachment: Flora_9272e1ec.zip
NI
Ninja
Syncfusion Team
December 6, 2019 11:01 AM UTC
Hi Flora ,
Thanks for your patience.
We have analyzed your query regarding “Foreground is not updated in DockingManager WPF” and logged it as defect. The fix will be updated in Volume 4 SP1 release which will roll out at end of January 2020. You can track it by using feedback portal given below. Please let us know if you have any further queries.
Feedback link : https://www.syncfusion.com/feedback/10618/foreground-is-not-updated-for-text-displayed-in-header
Regards,
Niranjan Kumar
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
FV Floris Verhoeven
- Dec 3, 2019 10:01 PM UTC
- Dec 6, 2019 11:01 AM UTC