HwndSource.UsesPerPixelOpacity 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一個值,宣告是否尊重來源視窗內容的每像素不透明度。
public:
property bool UsesPerPixelOpacity { bool get(); };
public bool UsesPerPixelOpacity { [System.Security.SecurityCritical] get; }
public bool UsesPerPixelOpacity { get; }
[<get: System.Security.SecurityCritical>]
member this.UsesPerPixelOpacity : bool
member this.UsesPerPixelOpacity : bool
Public ReadOnly Property UsesPerPixelOpacity As Boolean
屬性值
true如果系統使用每像素不透明度;否則,。 false
- 屬性
備註
當你啟用每像素不透明度後,系統就不再繪製非客戶區域。 這是因為 的 UsesPerPixelOpacity 預期目的是展示非矩形頂層 UI,且能在互通情境下運作。 因此,顯示矩形非客戶區域就違背了這個目的。