Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
完全に機能している WPF ポップアップがありますが、開いたときに、それをトリガーしたウィンドウからフォーカスが取得され、色が変化すると不快な効果があります (非アクティブであることを表すため)。この動作を変更する方法はありますか? または、このシナリオでのみフォーカス ビジュアル スタイルを無効にする簡単な方法はありますか?
正しく思い出せばIsHitTestVisible、ポップアップのルート要素のプロパティを に設定できますfalse。例えば
IsHitTestVisible
false
<Grid IsHitTestVisible="False"> <!-- all childs cannot get focus --> </Grid>
少なくとも Silverlight では、これは適切な回避策でした。