Windows 8.1 で独自のスタイルの WPF ウィンドウに問題があります。デフォルトのウィンドウのドラッグ動作用に、WindowChrome を使用してシンプルな透明な WPF ウィンドウを作成しました。
<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 の設定:
- 拡張デスクトップを備えた 2 台のモニター
- タスクバーはプライマリ デスクトップでのみ表示されます
再現:
- WPF アプリケーションを起動する
- セカンダリ スクリーンのウィンドウを移動する
- セカンダリ スクリーンのウィンドウを最大化します (たとえば、ウィンドウを一番上にドッキングします)。
- ウィンドウをセカンダリ スクリーンからプライマリ スクリーンに復元してドラッグする
--> マウスがプライマリ画面に入ると、タスクバー アイコンが消えます!
同じ再現をもう一度行うと、アイコンが再び表示されます。
.NET 4.5 または .NET 4.5.1 も使用しようとしました。
誰でもこの問題を説明できますか?
ありがとうございました!