1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <ListView Name="ImageListView" Foreground="{x:Null}"> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Style.Triggers> <Trigger Property="IsSelected" Value="True" > <Setter Property="FontWeight" Value="Bold" /> <Setter Property="Background" Value="Transparent" /> <Setter Property="Foreground" Value="Black" /> <Setter Property="BorderBrush" Value="Coral" /> <Setter Property="BorderThickness" Value="2" /> </Trigger> </Style.Triggers> <Style.Resources> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/> <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent"/> </Style.Resources> </Style> </ListBox.ItemContainerStyle> </ListView> |
'Windows Programming > WPF' 카테고리의 다른 글
Listbox 선택시 Listview의 Scroll이 자동으로 이동되는 문제 (0) | 2016.08.08 |
---|---|
Textbox에 Ctrl + A (전체선택) 기능 추가 (0) | 2014.05.27 |
Drag and Drop Files 구현 (0) | 2014.05.27 |