When i use titlebar, it has a problem.

Hi,

When i use version for '19.2.0.55', it has error.

This is my sample.


Attachment: ChromelessWindowSample_c9f6d907.rar

6 Replies

SA Sulthan Amanu Syncfusion Team April 8, 2022 06:09 PM UTC

Hi Yxj,


We can reproduce the problem at our end and we need more time to validate the issue. We will provide further details on April 12, 2022. We appreciate your patience until then.


Regards,

Sulthan Amanu



SA Sulthan Amanu Syncfusion Team April 12, 2022 06:20 PM UTC

Hi Yxj,


On further analysis, we are suspecting the issue is at the application level. However, we need some more time to confirm this. We will provide more details on April 18, 2022.


Regards,

Sulthan Amanu



YX YXJ replied to Sulthan Amanu April 22, 2022 07:45 AM UTC

Hi,

Any news?



SA Sulthan Amanu Syncfusion Team April 22, 2022 05:23 PM UTC

Hi YXJ,


On further analysis, we suspect that this issue is arising due to 2 controls with the same name under different namespaces and the usage of schema. To avoid this, we kindly request you to derive the TitleBar at the application level and use it in your XAML as shown below. Please let us know if you have any doubts about this.


Code Snippet


 

internal class Custom_TitleBar : TitleBar

    {

        static  Custom_TitleBar()

        {

            DefaultStyleKeyProperty.OverrideMetadata(typeof(Custom_TitleBar), new FrameworkPropertyMetadata(typeof(Custom_TitleBar)));

        }

    }

 

App.Xaml

 

<Application x:Class="ChromelessWindowSample.App"

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

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

             StartupUri="MainWindow.xaml" xmlns:shared="http://schemas.syncfusion.com/wpf"

             xmlns:syncfusion="http://schemas.syncfusion.com/wpf" xmlns:chromelesswindowsample="clr-namespace:ChromelessWindowSample">

 

Titlebartemplate

 

<ControlTemplate x:Key="Titlebartemplate" TargetType="{x:Type chromelesswindowsample:Custom_TitleBar}">

                <Border Name="border" Background="{StaticResource TitleBarbackground}" MinHeight="25" Height="{Binding ElementName=TitleBarHeight,Path=Value}" CornerRadius="{Binding ElementName=CornerRadiusSlider,Path=Value}"   >

                    <ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  />

                </Border>

            </ControlTemplate>

 




Regards,

Sulthan Amanu


Attachment: Samples_39678f7c.zip


YX YXJ replied to Sulthan Amanu April 24, 2022 12:05 PM UTC

Thanks alot! Its working perfectly now!



SA Sulthan Amanu Syncfusion Team April 25, 2022 01:29 PM UTC

HI YXJ,


We are glad to know that your issue has been resolved. Please let us know if you need any other assistance. We will be happy to assist you.

Regards,
Sulthan Amanu


Loader.
Up arrow icon