Page 1 of 1

The Window style does not apply

Posted: 22 Aug 2024, 12:02
by Logrus
Hi,
This code worked fine in version 3.2.0,
but in version 3.2.4 the style is not applied
class WindowEx : public NoesisApp::Window {}
class SingleModeWindow : public WindowEx {}
<!--  WindowEx  -->
<ControlTemplate x:Key="Template.WindowEx" TargetType="{x:Type WindowEx}">
   <Grid x:Name="Grid.Main" Margin="2">
            .... 
    <ContentPresenter Margin="0" />       
  </Grid>
</ControlTemplate>
 
 <Style x:Key="Style.WindowEx" TargetType="{x:Type WindowEx}">
    <Setter Property="OverridesDefaultStyle" Value="True" />
    <Setter Property="Template" Value="{StaticResource Template.WindowEx}" />
</Style>
<WindowEx
    x:Class="SingleModeWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:noesis="clr-namespace:NoesisGUIExtensions"
    WindowStyle="None"
    ShowInTaskbar="True"
    Style="{StaticResource Style.WindowEx}"
    mc:Ignorable="d">
	<Grid x:Name="#ContentGrid#"></Grid>	
</WindowEx>
Inspector screenshot
Screenshot 2024-08-22 125052.jpg

Re: The Window style does not apply

Posted: 27 Aug 2024, 23:51
by sfernandez
Hi, this could be related to some recent change regarding how the Window performs the clear of the background.
Could you please open a ticket about it?

Re: The Window style does not apply

Posted: 28 Aug 2024, 07:59
by Logrus
Ticket #3661