WPFのListBoxで選択項目のハイライトを無効にする方法。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Style style = new Style(typeof(ListBoxItem)); | |
SolidColorBrush brush = new SolidColorBrush(Colors.Transparent); | |
style.Resources.Add(SystemColors.HighlightBrushKey, brush); | |
style.Resources.Add(SystemColors.InactiveSelectionHighlightBrushKey, brush); | |
listBox.ItemContainerStyle = style; |
0 件のコメント:
コメントを投稿