Browse Source

add type column to tooltips

pull/59/merge
Siegfried Pammer 13 years ago
parent
commit
678ce75f0b
  1. 30
      src/AddIns/Debugger/Debugger.AddIn/Tooltips/DebuggerTooltipControl.xaml
  2. 2
      src/AddIns/Debugger/Debugger.AddIn/TreeModel/ValueNode.cs

30
src/AddIns/Debugger/Debugger.AddIn/Tooltips/DebuggerTooltipControl.xaml

@ -182,16 +182,16 @@ @@ -182,16 +182,16 @@
Focusable="False"
Width="19"
Height="13"
>
>
<ToggleButton.Template>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border Width="19" Height="13" Background="Transparent">
<Border Width="9"
Height="9"
BorderThickness="1"
BorderBrush="#FF7898B5"
CornerRadius="1"
SnapsToDevicePixels="true">
Height="9"
BorderThickness="1"
BorderBrush="#FF7898B5"
CornerRadius="1"
SnapsToDevicePixels="true">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<LinearGradientBrush.GradientStops>
@ -201,9 +201,9 @@ @@ -201,9 +201,9 @@
</LinearGradientBrush>
</Border.Background>
<Path x:Name="ExpandPath"
Margin="1,1,1,1"
Fill="Black"
Data="M 0 2 L 0 3 L 2 3 L 2 5 L 3 5 L 3 3 L 5 3 L 5 2 L 3 2 L 3 0 L 2 0 L 2 2 Z"/>
Margin="1,1,1,1"
Fill="Black"
Data="M 0 2 L 0 3 L 2 3 L 2 5 L 3 5 L 3 3 L 5 3 L 5 2 L 3 2 L 3 0 L 2 0 L 2 2 Z"/>
</Border>
</Border>
<ControlTemplate.Triggers>
@ -242,6 +242,16 @@ @@ -242,6 +242,16 @@
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!-- Type -->
<DataGridTemplateColumn MinWidth="20" Header="Type">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Border BorderBrush="#FFDDDDDD" BorderThickness="0 0 1 0">
<TextBlock Margin="6 0" Text="{Binding Path=Type, Mode=OneWay}" VerticalAlignment="Top"></TextBlock>
</Border>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!-- Visualizer picker -->
<DataGridTemplateColumn>
<DataGridTemplateColumn.CellTemplate>
@ -271,7 +281,7 @@ @@ -271,7 +281,7 @@
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
<!-- <StackPanel Opacity="0.2" Name="SideButtons" Margin="3">
<!-- <StackPanel Opacity="0.2" Name="SideButtons" Margin="3">
<Button
Name="CloseButton"
Click="CloseButton_Click"

2
src/AddIns/Debugger/Debugger.AddIn/TreeModel/ValueNode.cs

@ -252,7 +252,7 @@ namespace Debugger.AddIn.TreeModel @@ -252,7 +252,7 @@ namespace Debugger.AddIn.TreeModel
ClassBrowserIconService.Class,
StringParser.Parse("${res:MainWindow.Windows.Debug.LocalVariables.BaseClass}"),
baseType.Name,
baseType.FullName,
string.Empty,
baseType.FullName == "System.Object" ? (Func<IEnumerable<TreeNode>>) null : () => GetObjectChildren(baseType)
);
}

Loading…
Cancel
Save