Browse Source

SearchPane: properly set focus on search box, if panel is first activated.

pull/1880/head
Siegfried Pammer 5 years ago
parent
commit
0adfefab92
  1. 6
      ILSpy/ViewModels/SearchPaneModel.cs
  2. 2
      ILSpy/ViewModels/ToolPaneModel.cs

6
ILSpy/ViewModels/SearchPaneModel.cs

@ -30,5 +30,11 @@ namespace ICSharpCode.ILSpy.ViewModels
Title = Properties.Resources.SearchPane_Search; Title = Properties.Resources.SearchPane_Search;
IsCloseable = true; IsCloseable = true;
} }
public override void Show()
{
base.Show();
MainWindow.Instance.SearchPane.Show();
}
} }
} }

2
ILSpy/ViewModels/ToolPaneModel.cs

@ -20,7 +20,7 @@ namespace ICSharpCode.ILSpy.ViewModels
{ {
public abstract class ToolPaneModel : PaneModel public abstract class ToolPaneModel : PaneModel
{ {
public void Show() public virtual void Show()
{ {
this.IsActive = true; this.IsActive = true;
this.IsVisible = true; this.IsVisible = true;

Loading…
Cancel
Save