Logrus
Topic Author
Posts: 59
Joined: 22 Jul 2015, 12:16

The Window style does not apply

22 Aug 2024, 12:02

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
 
User avatar
sfernandez
Site Admin
Posts: 3112
Joined: 22 Dec 2011, 19:20

Re: The Window style does not apply

27 Aug 2024, 23:51

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?
 
Logrus
Topic Author
Posts: 59
Joined: 22 Jul 2015, 12:16

Re: The Window style does not apply

28 Aug 2024, 07:59

Ticket #3661

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest