Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created December 29, 2017 15:23
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/86c9cc126da1b564d64e895f67959091 to your computer and use it in GitHub Desktop.
Save kevingosse/86c9cc126da1b564d64e895f67959091 to your computer and use it in GitHub Desktop.
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Windows;
using DbgX.Interfaces;
using DbgX.Util;
namespace WinDbgExt.History
{
[RibbonTabGroupExtensionMetadata("ViewRibbonTab", "Windows", 5), Export(typeof(IDbgRibbonTabGroupExtension))]
public class HistoryViewModel : IDbgRibbonTabGroupExtension
{
public HistoryViewModel()
{
ShowCommand = new DelegateCommand(Show);
}
public DelegateCommand ShowCommand { get; }
public IEnumerable<FrameworkElement> Controls => new[] { new HistoryButton(this) };
private void Show()
{
// TODO
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment