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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Docking Manager: Header Foreground properties are not applied

Thread ID:

Created:

Updated:

Platform:

Replies:

149627 Dec 3,2019 10:01 PM UTC Dec 6,2019 11:01 AM UTC WPF 5
loading
Tags: DockingManager
Floris Verhoeven
Asked On December 3, 2019 10:01 PM UTC

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

Floris Verhoeven
Replied On 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

Niranjan Kumar Gopalan [Syncfusion]
Replied On 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 


Niranjan Kumar Gopalan [Syncfusion]
Replied On 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 
 


Floris Verhoeven
Replied On 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

Niranjan Kumar Gopalan [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon