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でどのように行うことができますか?
これを実現するには、TreeViewItemのリソースで次のようにシステムコントロールブラシを置き換える必要があります。
<Style TargetType="TreeViewItem" x:Key="TreeViewItemStyle"> <Style.Resources> <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Blue>"/> </Style.Resources> </Style>