Browse Source

Fix opening the item when editing

pull/15/head
Eusebiu Marcu 15 years ago
parent
commit
3850f794c4
  1. 2
      src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchList.xaml
  2. 3
      src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchList.xaml.cs

2
src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchList.xaml

@ -300,7 +300,7 @@ @@ -300,7 +300,7 @@
</UserControl.Resources>
<DockPanel>
<localControls:TreeListView
MouseDoubleClick="MyList_MouseDoubleClick"
PreviewMouseDoubleClick="MyList_PreviewMouseDoubleClick"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
ItemsSource="{Binding Path=WatchItems}"

3
src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchList.xaml.cs

@ -97,7 +97,7 @@ namespace Debugger.AddIn.Pads.Controls @@ -97,7 +97,7 @@ namespace Debugger.AddIn.Pads.Controls
tb.Visibility = Visibility.Visible;
}
void MyList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
void MyList_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (WatchType != WatchListType.Watch)
return;
@ -120,6 +120,7 @@ namespace Debugger.AddIn.Pads.Controls @@ -120,6 +120,7 @@ namespace Debugger.AddIn.Pads.Controls
// change visibility
tb.Visibility = Visibility.Collapsed;
cell.Visibility = Visibility.Visible;
e.Handled = true;
}
}
}

Loading…
Cancel
Save