As a continuation of my previous question , I am wondering how to use transparent windows correctly. If I set my window to use transparency, the user interface will sometimes stop responding. In fact, what happens is that the user interface is simply not being updated as it should. Animation does not occur, pages are not displayed to move; however, if you watch the debugger click on buttons, links, etc., it really works. Minimizing and restoring the window again picks up the user interface, and the user can continue working until the behavior returns.
If you remove the transparent borders, the behavior will not occur. Am I doing something wrong or are there other settings, code, etc. Which I need to implement to work correctly with transparent borders?
Here is my window declaration for code that fails.
<Window x:Class="MyProject.MainContainer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="WPF APplication" Height="600" Width="800" xmlns:egc="ControlLibrary" Background="{x:Null}" BorderThickness="0" AllowsTransparency="True" MinHeight="300" MinWidth="400" WindowStyle="None" >
And code that doesn't show behavior
<Window x:Class="MyProject.MainContainer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="WPF Application" Height="600" Width="800" xmlns:egc="ControlLibrary" Background="{x:Null}" BorderThickness="0" AllowsTransparency="False" MinHeight="300" MinWidth="400" WindowStyle="None" >
source share