This question is locked. New answers and comments are not allowed.
Hi,I want to make the line change from Solidline to line of dashes. But there is a line I can't control it .
The codes:
There are three lines I can control, and there is another line I can't control, you can see the image attached.
<StackPanel x:Name="IndentContainer" Orientation="Horizontal"> <Rectangle x:Name="IndentFirstVerticalLine" StrokeDashArray="1 2" Stroke="{StaticResource TreeView_LineColor}" Visibility="Collapsed" VerticalAlignment="Top" Width="1"> <Rectangle.Clip> <RectangleGeometry Rect="0,0,1,10000"/> </Rectangle.Clip> </Rectangle> </StackPanel> <Grid x:Name="ListRootContainer" Grid.Column="1" HorizontalAlignment="Center" MinWidth="20"> <Rectangle x:Name="HorizontalLine" StrokeDashArray="1 2" HorizontalAlignment="Right" Height="1" Stroke="{StaticResource TreeView_LineColor}" VerticalAlignment="Center"> <Rectangle.Clip> <RectangleGeometry Rect="0,0,10000,1"/> </Rectangle.Clip> </Rectangle> <Rectangle x:Name="VerticalLine" StrokeDashArray="1 2" HorizontalAlignment="Center" Stroke="{StaticResource TreeView_LineColor}" VerticalAlignment="Top" Width="1"> <Rectangle.Clip> <RectangleGeometry Rect="0,0,1,10000"/> </Rectangle.Clip> </Rectangle> <ToggleButton x:Name="Expander" Background="Red" IsTabStop="False" Style="{StaticResource ToggleButtonStyle}"/> <Grid x:Name="LoadingVisual" HorizontalAlignment="Center" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed" VerticalAlignment="Center"> <Grid.RenderTransform> <TransformGroup> <RotateTransform x:Name="LoadingVisualAngleTransform" Angle="0" CenterY="0.5" CenterX="0.5"/> </TransformGroup> </Grid.RenderTransform> </Grid> </Grid>And how can I change the style of the expander? I want to change the color.
Thanks very much.
