wpf
Listview , Button MouseOver, Selcted Color 제거
동동(이재동)
2017. 9. 12. 12:40
listview
1 2 3 4 5 6 7 8 9 10 11 12 | <ListView.ItemContainerStyle> <Style TargetType="{x:Type ListViewItem}"> <Setter Property="Background" Value="Transparent" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListViewItem}"> <ContentPresenter /> </ControlTemplate> </Setter.Value> </Setter> </Style> </ListView.ItemContainerStyle> |
button
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <Button.Style> <Style TargetType="{x:Type Button}"> <Setter Property="Background" Value="Transparent"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Border Background="{TemplateBinding Background}"> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> </Button.Style> |