I have some problems with an own styled WPF Window on Windows 8.1. I wrote a simple transparent WPF Window with a WindowChrome for default windows drag behaviors:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="300" Width="300" Background="Transparent"
AllowsTransparency="True" WindowStyle="None">
<WindowChrome.WindowChrome>
<WindowChrome />
</WindowChrome.WindowChrome>
<Border Background="Gray" CornerRadius="20">
<Grid>
</Grid>
</Border>
</Window>
Windows 8.1 Settings:
- 2 monitors with extended desktop
- Taskbar only visible on primary desktop
Repro:
- Start the WPF application
- Move the window on the secondary screen
- Maximize the window on the secondary screen (for example by docking the window on the top)
- Restore and drag the window from the secondary screen to the primary screen
--> The taskbar icon will disappear exactly when the mouse enters on the primary screen!
If you do the same repro again the icon reappears.
I also tried to use .NET 4.5 or .NET 4.5.1!
Can anyone explain this problem?
Thank you!