The window decoration itself is not OK after inheriting from a ChromelessWindow

After I inherit from a ChromelessWindow, I have this strange outcome like in the picture below : The window with title 'TestWindowCurves' is a standard ChromelessWindow, but the window named 'Constant Editor' makes the decorators of the window look like that.

Syncfusion_01.png

It used to work before for that same window as it was a chromeless one and I just have replaced the name for the derived class in both xaml and code behind. The xaml header for that window looks like this :

<base:ChangeAwareWindow x:Class="Livinoid.Wpf.Shared.Forms.ConstantEditorWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
mc:Ignorable="d"
xmlns:syncfusionskin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
xmlns:base="clr-namespace:Livinoid.Wpf.Shared.Base"
syncfusionskin:SfSkinManager.Theme="{syncfusionskin:SkinManagerExtension ThemeName=FluentDark}"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
Icon="../Resource/Constant_01.png"
x:Name="Window"
Title="Constant Editor">

I'm using syncfusion version 19.3.0.43 on Windows 10 Pro (latest updates), the project is NET6.0.

For the derived class I just created  a class and derived from ChromelessWindow and added some properties and common functions to it like in the code below :

public class ChangeAwareWindow : ChromelessWindow
{
#region Constants

#endregion

#region Vars, Fields and Props

public bool IsChanged { get; set; } = false;

/// <summary>
/// Is this form cancelled for instance via the 'cancel' button or the form closing via
/// the 'close' button of the form.
/// <br></br>The default is true. You should set this to false if the data is saved.
/// <remarks>If the value is not set to false, a messagebox will pop up asking
/// if the data must be saved.</remarks>
/// </summary>
public bool IsCancelled { get; set; } = true;

#endregion

#region Events and Actions

#endregion

#region Methods and Functions

public ChangeAwareWindow()
{
Closing += Window_OnClosing;
}

protected virtual void Window_OnClosing(object? sender, CancelEventArgs e)
{
if (IsCancelled && IsChanged)
{
if (MessageBox.Show($"Changes are made, would you like to save them ?",
$"Changes", MessageBoxButton.YesNo,
MessageBoxImage.Question) == MessageBoxResult.Yes)
{
IsCancelled = false;
}
}
}

#endregion

Am I doing something wrong or is this a bug ?

Cheers


4 Replies

EM Elakkiya Muthukumarasamy Syncfusion Team December 3, 2021 09:40 AM UTC

Hi Geert, 
 
Greetings from Syncfusion. 
 
We have checked the reported issue and we suspect that you are trying to apply the theme for custom window of ChromelessWindow.We are able to reproduce this issue and we are working to find the exact cause of this issue we will update the further details on 6th December 2021.We appreciate your patience until then. 
 
Regards, 
Elakkiya 



GM GMas replied to Elakkiya Muthukumarasamy December 3, 2021 12:15 PM UTC

Hi Elakkiya,

Your assumptions are correct and I'm looking forward to the the update !

Cheers,

Geert



EM Elakkiya Muthukumarasamy Syncfusion Team December 6, 2021 01:47 PM UTC

Hi Geert, 
 
Thanks for your update 

We have confirmed the reported scenario “While using custom ChromelessWindow theme not applied properly” is a defect and logged a report for this. We’ll provide the patch file for the reported issue on December 20th , 2021. We appreciate your patience until then. 
 
Please follow the below feedback link for further details 
 
Please let us know if you need any further assistance.    

Regards, 
Elakkiya 



TB Thirupathi Bala Krishnan Syncfusion Team December 17, 2021 05:58 PM UTC

Hi Geert, 
   
We have fixed the reported issue - “While using custom ChromelessWindow theme not applied properly”. Please find the patch file from the following location:      

V19.3.0.43
 
Recommended approach – exe will perform automatic configuration                   
Please find the patch setup here:                                         
                       
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                                    
Please find the patch assemblies alone from:                    
                 
Please find the Nugets from the below location:                   
                  
 
NOTE:         
You can change how you receive bug fixes by navigating to the following link and updating your preferences.        
                 
Disclaimer:                                  
Please note that we have created this patch for the version 19.3.0.43 specifically to resolve the issues reported in this forum #170873. If you have received other patches for the same version for other products. This fix will be included in our Volume 4 SP1 release which will be available in January 2022. 
   
Please let us know if you need any further assistance.   
   
Regards,
Thirupathi B.
 


Loader.
Up arrow icon