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. 9
      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,9 +36,11 @@ namespace Debugger.AddIn.Pads.ParallelPad
if (graph == null) if (graph == null)
this.ParallelStacksLayout.CancelLayout(); this.ParallelStacksLayout.CancelLayout();
else else {
this.ParallelStacksLayout.Relayout();
this.ParallelStacksLayout.Relayout(); this.ParallelStacksLayout.Relayout();
} }
}
public bool IsZoomControlVisible { public bool IsZoomControlVisible {
get { return ZoomControl.Visibility == Visibility.Visible; } get { return ZoomControl.Visibility == Visibility.Visible; }

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

@ -4,6 +4,13 @@
Width="Auto" Width="Auto"
Height="Auto" Height="Auto"
Background="Transparent"> 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 <Border
x:Name="BorderParent" x:Name="BorderParent"
BorderBrush="Black" BorderBrush="Black"
@ -85,7 +92,7 @@
<Setter Property="Background" Value="White"></Setter> <Setter Property="Background" Value="White"></Setter>
<Style.Triggers> <Style.Triggers>
<Trigger Property="IsMouseOver" Value="True"> <Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="LightGray" /> <Setter Property="Background" Value="{StaticResource RowBackground}" />
</Trigger> </Trigger>
</Style.Triggers> </Style.Triggers>
</Style> </Style>

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

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

Loading…
Cancel
Save