|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
3 | 3 | xmlns:styles="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0"
|
4 | 4 | xmlns:colors="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0"
|
5 |
| - xmlns:sys="clr-namespace:System;assembly=mscorlib"> |
| 5 | + xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| 6 | + xmlns:vs="http://schemas.microsoft.com/visualstudio/extensibility/2022/xaml"> |
6 | 7 | <Grid>
|
7 | 8 | <Grid.ColumnDefinitions>
|
8 | 9 | <ColumnDefinition Width="70"></ColumnDefinition>
|
|
30 | 31 | <TabControl.ItemTemplate>
|
31 | 32 | <!-- Template for the tab headers -->
|
32 | 33 | <DataTemplate>
|
33 |
| - <TextBlock Text="{Binding ShortName}" VerticalAlignment="Center"/> |
| 34 | + <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> |
| 35 | + <vs:Image Source="KnownMonikers.ClearWindowContent" /> |
| 36 | + <TextBlock Text="{Binding ShortName}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
| 37 | + </StackPanel> |
34 | 38 | </DataTemplate>
|
35 | 39 | </TabControl.ItemTemplate>
|
36 | 40 |
|
|
83 | 87 | <!-- EventSource -->
|
84 | 88 | <TextBlock Grid.Row="3" Grid.Column="0" Text="Actions:" Visibility="{Binding IsEventSource}" Margin="0"/>
|
85 | 89 | <StackPanel Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Visibility="{Binding IsEventSource}" Orientation="Horizontal" Margin="0,3,0,0">
|
86 |
| - <Button Command="{Binding ProcessLauncher}" CommandParameter="eventvwr.msc" Content="🔎 Event Viewer" Width="120"/> |
87 |
| - <Button Command="{Binding ProcessLauncher}" CommandParameter="perfmon.exe" Content="🔎 Performance Monitor" Width="160" Margin="3,0,0,0"/> |
| 90 | + <Button Command="{Binding ProcessLauncher}" CommandParameter="eventvwr.msc" Width="120"> |
| 91 | + <StackPanel Orientation="Horizontal"> |
| 92 | + <vs:Image Source="KnownMonikers.Search" /> |
| 93 | + <TextBlock Text="Event Viewer" VerticalAlignment="Center" Margin="5,0,0,0"/> |
| 94 | + </StackPanel> |
| 95 | + </Button> |
| 96 | + <Button Command="{Binding ProcessLauncher}" CommandParameter="perfmon.exe" Width="160" Margin="3,0,0,0"> |
| 97 | + <StackPanel Orientation="Horizontal"> |
| 98 | + <vs:Image Source="KnownMonikers.Search" /> |
| 99 | + <TextBlock Text="Performance Monitor" VerticalAlignment="Center" Margin="5,0,0,0"/> |
| 100 | + </StackPanel> |
| 101 | + </Button> |
88 | 102 | </StackPanel>
|
89 | 103 |
|
90 | 104 | <!-- EventLog -->
|
|
96 | 110 | <TextBlock Grid.Row="5" Grid.Column="1" Text="{Binding LogName}" Visibility="{Binding IsEventLog}"/>
|
97 | 111 | <TextBlock Grid.Row="6" Grid.Column="0" Text="Actions:" Visibility="{Binding IsEventLog}"/>
|
98 | 112 | <StackPanel Grid.Row="6" Grid.Column="1" Margin="0" HorizontalAlignment="Left" Visibility="{Binding IsEventLog}" Orientation="Horizontal">
|
99 |
| - <Button Command="{Binding ProcessLauncher}" CommandParameter="eventvwr.msc" Content="🔎 Event Viewer" Width="120"/> |
| 113 | + <Button Command="{Binding ProcessLauncher}" CommandParameter="eventvwr.msc" Width="120"> |
| 114 | + <StackPanel Orientation="Horizontal"> |
| 115 | + <vs:Image Source="KnownMonikers.Search" /> |
| 116 | + <TextBlock Text="Event Viewer" VerticalAlignment="Center" Margin="5,0,0,0"/> |
| 117 | + </StackPanel> |
| 118 | + </Button> |
100 | 119 | </StackPanel>
|
101 | 120 |
|
102 | 121 | <!-- ElmahIo -->
|
|
106 | 125 | <TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding LogId}" Visibility="{Binding IsElmahIo}"/>
|
107 | 126 | <TextBlock Grid.Row="5" Grid.Column="0" Text="Actions:" Visibility="{Binding IsElmahIo}"/>
|
108 | 127 | <StackPanel Grid.Row="5" Grid.Column="1" Margin="0" HorizontalAlignment="Left" Visibility="{Binding IsElmahIo}" Orientation="Horizontal">
|
109 |
| - <Button Command="{Binding Browse}" CommandParameter="{Binding}" Content="🔎 Browse" Width="80" IsEnabled="{Binding CanBrowse}"/> |
110 |
| - <Button Command="{Binding Diagnose}" CommandParameter="{Binding}" Content="🧑🏼⚕️ Diagnose" Width="90" Margin="3,0,0,0" IsEnabled="{Binding CanDiagnose}"/> |
| 128 | + <Button Command="{Binding Browse}" CommandParameter="{Binding}" Width="80" IsEnabled="{Binding CanBrowse}"> |
| 129 | + <StackPanel Orientation="Horizontal"> |
| 130 | + <vs:Image Source="KnownMonikers.Search" /> |
| 131 | + <TextBlock Text="Browse" VerticalAlignment="Center" Margin="5,0,0,0"/> |
| 132 | + </StackPanel> |
| 133 | + </Button> |
| 134 | + <Button Command="{Binding Diagnose}" CommandParameter="{Binding}" Width="90" Margin="3,0,0,0" IsEnabled="{Binding CanDiagnose}"> |
| 135 | + <StackPanel Orientation="Horizontal"> |
| 136 | + <vs:Image Source="KnownMonikers.StatusOKNew" /> |
| 137 | + <TextBlock Text="Diagnose" VerticalAlignment="Center" Margin="5,0,0,0"/> |
| 138 | + </StackPanel> |
| 139 | + </Button> |
111 | 140 | </StackPanel>
|
112 | 141 | </Grid>
|
113 | 142 | </DataTemplate>
|
|
0 commit comments