The Window style does not apply
Hi,
This code worked fine in version 3.2.0,
but in version 3.2.4 the style is not applied
Inspector screenshot
This code worked fine in version 3.2.0,
but in version 3.2.4 the style is not applied
Code: Select all
class WindowEx : public NoesisApp::Window {}
class SingleModeWindow : public WindowEx {}
Code: Select all
<!-- 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>
Code: Select all
<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>
-
sfernandez
Site Admin
- Posts: 3109
- Joined:
Re: The Window style does not apply
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?
Could you please open a ticket about it?
Who is online
Users browsing this forum: Google [Bot] and 2 guests