<TreeView x:Name="treeView" Background="#141B22" BorderBrush="{x:Null}">
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
</Style>
</TreeView.ItemContainerStyle>
<TreeView.Resources>
<Style TargetType="TreeViewItem">
<Style.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#141B22"/>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="#141B22"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="#141B22" />
</Style.Resources>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="BorderBrush" Value="{x:Null}"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#141B22"/>
<Setter Property="BorderBrush" Value="{x:Null}"/>
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#141B22"/>
<Setter Property="BorderBrush" Value="{x:Null}"/>
</Trigger>
</Style.Triggers>
</Style>
</TreeView.Resources>
<TreeViewItem BorderBrush="{x:Null}" Name="test" Header="wewe"></TreeViewItem>
</TreeView>
트리뷰컨트롤인데 이렇게하면 마우스 over해도 아무색상이 변경안되는데
비하인드코드에서 devexpress 차트 객체인 LineSeries2D lineSeries = new LineSeries2D(); 이거 생성하면
갑자기 테두리생기고 백그라운드도 하얀색으로변경되는데
이거 해결 방법있어?
댓글 0