Hi,
When i use version for '19.2.0.55', it has error.
This is my sample.
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
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
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
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