We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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

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


UN Unknown 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 



UN Unknown 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,

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


UN Unknown 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. 
 
 
Regards, 
Niranjan Kumar 


Loader.
Live Chat Icon For mobile
Up arrow icon