我有一個帶背景圖像的wppf按鈕。禁用按鈕鼠標超過效果
當我將鼠標移到背景上時,它將是空的,並顯示一個按鈕。
如何禁用鼠標效果?
<Button BorderBrush="{x:Null}" Content="Reset" BorderThickness="0"Foreground="White" Focusable="False">
<Button.Background>
<ImageBrush ImageSource="button.png" />
</Button.Background>
聽起來就像使用Visual State Manager的觸發器一樣。請提供所有相關的xaml。 – Aphelion
試試這個; http://stackoverflow.com/questions/1302756/why-is-the-buttons-background-changing pro-tip,如果你沒有評論的評論發佈「trival答案」,看看會發生什麼。 –