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
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 {

43
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"
@ -38,7 +45,7 @@
Margin="2" Margin="2"
HorizontalAlignment="Center" /> HorizontalAlignment="Center" />
</Border> </Border>
<DataGrid <DataGrid
Background="Transparent" Background="Transparent"
Margin="5,0,5,5" Margin="5,0,5,5"
x:Name="datagrid" x:Name="datagrid"
@ -81,25 +88,25 @@
</Style> </Style>
</DataGrid.CellStyle> </DataGrid.CellStyle>
<DataGrid.RowStyle> <DataGrid.RowStyle>
<Style TargetType="{x:Type DataGridRow}"> <Style TargetType="{x:Type DataGridRow}">
<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>
</DataGrid.RowStyle> </DataGrid.RowStyle>
<DataGrid.Columns> <DataGrid.Columns>
<DataGridTemplateColumn> <DataGridTemplateColumn>
<DataGridTemplateColumn.CellTemplate> <DataGridTemplateColumn.CellTemplate>
<DataTemplate> <DataTemplate>
<Border BorderBrush="Gray" BorderThickness="0,1,1,0" Width="25" Height="22"> <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" <Image VerticalAlignment="Center" Margin="0,-5,0,0" Width="14" Height="14" HorizontalAlignment="Center"
Source="{Binding Image}" /> Source="{Binding Image}" />
</Border> </Border>
</DataTemplate> </DataTemplate>
</DataGridTemplateColumn.CellTemplate> </DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn> </DataGridTemplateColumn>
<DataGridTemplateColumn <DataGridTemplateColumn
Width="Auto"> Width="Auto">
@ -107,12 +114,12 @@
<DataTemplate> <DataTemplate>
<Border BorderBrush="Gray" BorderThickness="0,1,0,0"> <Border BorderBrush="Gray" BorderThickness="0,1,0,0">
<TextBlock Margin="5,0,10,0" <TextBlock Margin="5,0,10,0"
VerticalAlignment="Center" VerticalAlignment="Center"
FontFamily="Khmer UI" FontFamily="Khmer UI"
FontSize="12" FontSize="12"
Text="{Binding Path=MethodName}" Text="{Binding Path=MethodName}"
FontWeight="{Binding Path=FontWeight}" FontWeight="{Binding Path=FontWeight}"
Foreground="{Binding Path=Foreground}" Foreground="{Binding Path=Foreground}"
/> />
</Border> </Border>
</DataTemplate> </DataTemplate>

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