相关文章推荐
逃课的紫菜汤  ·  WampServer & XAMPP ...·  2 月前    · 
高大的毛衣  ·  makefile详解 - 知乎·  7 月前    · 
傻傻的生姜  ·  最新版Spring Cloud ...·  1 年前    · 
重情义的黄瓜  ·  ora-02069 insert ...·  1 年前    · 

Hello

I am doing an app, that every new Window is a Chromeless Windows and uses fluent design.

Every time I create a new XAML I have to declare

<syncfusion:ChromelessWindow  
    xmlns:syncfusion="http://schemas.syncfusion.com/wpf"  
    xmlns:syncfusionskin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"  
    syncfusionskin:SfSkinManager.Theme="{syncfusionskin:SkinManagerExtension ThemeName=FluentDark}"  
    AllowsTransparency="True"  
    CornerRadius="10"  
    ShowIcon="False"  
    mc:Ignorable="d">  
    <Grid />  
</syncfusion:ChromelessWindow>  

and in my code behind

public partial class CittyDetailsWinow : ChromelessWindow  
    public CittyDetailsWinow()  
        InitializeComponent();  

my question is, there is a way to make all my windows implement this automatically