inheriting ChromelessWindow

Hello,
I have a quick question.
I'm trying to use ChromelessWindow by inheriting from it and adding a few custom properties.
However, when I inherit from ChromelessWindow, I can no longer resize the window using the mouse.
Is there anything else I need to do?
I've attached a simple code sample.
I would appreciate it if you could take a look.


//MyWindow.cs

namespace WpfApp1

{

    public class MyWindow : Syncfusion.Windows.Shared.ChromelessWindow

    {

        public MyWindow() : base()

        {

        }

    }

}


// MainWindow.cs

namespace WpfApp1

{


    public partial class MainWindow

    {


public MainWindow()

{

InitializeComponent();


        }


}


}

MainWindow.xaml

<local:MyWindow

        x:Class="WpfApp1.MainWindow"

        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"

        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

        xmlns:local="clr-namespace:WpfApp1"

        xmlns:shared="clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Shared.WPF"

        mc:Ignorable="d"

        Title="MainWindow" Height="450" Width="800">

</local:MyWindow>


Attachment: ChromelessWindowInherit_cb3c6baa.zip


1 Reply

BS Bhaskar Suresh Syncfusion Team May 14, 2025 11:07 AM UTC

Hi Morgan Le Fay,


We have prepared a sample that incorporates a custom control derived from ChromelessWindow, and the mouse interaction functions seamlessly. Kindly review the sample and share any concerns you may have.


Regards,

Bhaskar Suresh


Attachment: ChrmlssWnd_CustomCtrl_f18ea0a8.zip

Loader.
Up arrow icon