Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created January 3, 2018 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevingosse/ae26cebf43459e7bebe0d9020a46558a to your computer and use it in GitHub Desktop.
Save kevingosse/ae26cebf43459e7bebe0d9020a46558a to your computer and use it in GitHub Desktop.
using System.ComponentModel.Composition;
using System.Windows.Controls;
using DbgX.Interfaces;
using DbgX.Interfaces.Services;
namespace WinDbgExt.History
{
[NamedPartMetadata("CommandWindow"), Export(typeof(IDbgToolWindow))]
public class CommandWindow : IDbgToolWindow
{
[Import]
private IDbgConsole _console;
public Control GetToolWindowView(object parameter)
{
return new ContentControl { Content = new CommandControl(_console, (string)parameter) };
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment