Browse Source

fix some UI issues

pull/15/head
Eusebiu Marcu 15 years ago
parent
commit
c5bff6985c
  1. 4
      src/AddIns/Debugger/Debugger.AddIn/Pads/ParallelPad/DrawSurface.xaml.cs
  2. 43
      src/AddIns/Debugger/Debugger.AddIn/Pads/ParallelPad/ThreadStack.xaml
  3. 3
      src/AddIns/Debugger/Debugger.AddIn/Pads/ParallelPad/ThreadStack.xaml.cs

4
src/AddIns/Debugger/Debugger.AddIn/Pads/ParallelPad/DrawSurface.xaml.cs

@ -36,8 +36,10 @@ namespace Debugger.AddIn.Pads.ParallelPad @@ -36,8 +36,10 @@ namespace Debugger.AddIn.Pads.ParallelPad
if (graph == null)
this.ParallelStacksLayout.CancelLayout();
else
else {
this.ParallelStacksLayout.Relayout();
this.ParallelStacksLayout.Relayout();
}
}
public bool IsZoomControlVisible {

43
src/AddIns/Debugger/Debugger.AddIn/Pads/ParallelPad/ThreadStack.xaml

@ -4,6 +4,13 @@ @@ -4,6 +4,13 @@
Width="Auto"
Height="Auto"
Background="Transparent">
<UserControl.Resources>
<LinearGradientBrush x:Key="RowBackground" StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#F7F7F7" Offset="0.2"/>
<GradientStop Color="#EAEAEA" Offset=".5"/>
<GradientStop Color="#E5E5E5" Offset=".8"/>
</LinearGradientBrush>
</UserControl.Resources>
<Border
x:Name="BorderParent"
BorderBrush="Black"
@ -38,7 +45,7 @@ @@ -38,7 +45,7 @@
Margin="2"
HorizontalAlignment="Center" />
</Border>
<DataGrid
<DataGrid
Background="Transparent"
Margin="5,0,5,5"
x:Name="datagrid"
@ -81,25 +88,25 @@ @@ -81,25 +88,25 @@
</Style>
</DataGrid.CellStyle>
<DataGrid.RowStyle>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="White"></Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="LightGray" />
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="White"></Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{StaticResource RowBackground}" />
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
<DataGridTemplateColumn>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Border BorderBrush="Gray" BorderThickness="0,1,1,0" Width="25" Height="22">
<Image VerticalAlignment="Center" Margin="0,-5,0,0" Width="14" Height="14" HorizontalAlignment="Center"
Source="{Binding Image}" />
Source="{Binding Image}" />
</Border>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn
Width="Auto">
@ -107,12 +114,12 @@ @@ -107,12 +114,12 @@
<DataTemplate>
<Border BorderBrush="Gray" BorderThickness="0,1,0,0">
<TextBlock Margin="5,0,10,0"
VerticalAlignment="Center"
FontFamily="Khmer UI"
FontSize="12"
Text="{Binding Path=MethodName}"
FontWeight="{Binding Path=FontWeight}"
Foreground="{Binding Path=Foreground}"
VerticalAlignment="Center"
FontFamily="Khmer UI"
FontSize="12"
Text="{Binding Path=MethodName}"
FontWeight="{Binding Path=FontWeight}"
Foreground="{Binding Path=Foreground}"
/>
</Border>
</DataTemplate>

3
src/AddIns/Debugger/Debugger.AddIn/Pads/ParallelPad/ThreadStack.xaml.cs

@ -151,9 +151,6 @@ namespace Debugger.AddIn.Pads.ParallelPad @@ -151,9 +151,6 @@ namespace Debugger.AddIn.Pads.ParallelPad
if (row != null)
{
datagrid.SelectedItem = row.DataContext;
if (toolTip.IsOpen)
toolTip.IsOpen = false;
toolTip.IsOpen = true;
e.Handled = true;
}
}

Loading…
Cancel
Save