作爲my previous question的後續,我想知道如何正確使用透明窗口。如果我已將窗口設置爲使用透明度,則界面偶爾會顯示停止響應。實際發生的事情是,用戶界面根本不會更新。動畫不會出現,頁面不會導航;然而,如果你看着調試器點擊按鈕,鏈接等等,確實有效。最小化和恢復窗口「再次捕捉」用戶界面,用戶可以繼續工作,直到行爲恢復。WPF透明邊框導致UI停止重繪
如果我刪除透明邊框,行爲不會發生。我做錯了什麼或者是否有其他一些設置,代碼等等,我需要實現以正確處理透明邊框?
這是我的代碼失敗的窗口聲明。
<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" >
並沒有表現出在Windows XP SP2的行爲
<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" >
在那篇博客文章中,有人說有些視頻卡驅動程序通過系統內存做了位圖拷貝,也許更新視頻博士提供者會有所幫助。 – 2008-09-23 19:21:48
我再次檢查,視頻驅動程序已與最新的最新。我應該提到,這是發生在每個已經過測試的工作站上(其中約有10個) – palehorse 2008-09-23 20:40:29