Skip to content

Commit

Permalink
Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Sep 11, 2023
1 parent f195115 commit 1342479
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/ExceptionVisualizer/MyVisualizerUserControl.xaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
<DataTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:styles="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0">
xmlns:styles="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0"
xmlns:colors="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0">
<DataTemplate.Resources>
<Style TargetType="TreeView" BasedOn="{StaticResource {x:Static styles:VsResourceKeys.ThemedDialogTreeViewStyleKey}}" />
<Style TargetType="TreeViewItem" BasedOn="{StaticResource {x:Static styles:VsResourceKeys.ThemedDialogTreeViewItemStyleKey}}">
<Setter Property="IsExpanded" Value="True" />
<Style.Triggers>
<DataTrigger Binding="{Binding Exceptions.Count, RelativeSource={RelativeSource Self}}" Value="1">
<Setter Property="IsExpanded" Value="False" />
</DataTrigger>
</Style.Triggers>
</Style>
<Style TargetType="TextBox" BasedOn="{StaticResource {x:Static styles:VsResourceKeys.TextBoxStyleKey}}" />
<DataTemplate x:Key="CaptureTemplate">
<Grid>
Expand Down Expand Up @@ -111,7 +104,7 @@
</Grid.RowDefinitions>
<TreeView ItemsSource="{Binding Exceptions}" Grid.Column="0" Margin="3">
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<Style TargetType="TreeViewItem" BasedOn="{StaticResource {x:Static styles:VsResourceKeys.ThemedDialogTreeViewItemStyleKey}}">
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
<Setter Property="IsExpanded" Value="True"/>
</Style>
Expand Down

0 comments on commit 1342479

Please sign in to comment.