Skip to content

Instantly share code, notes, and snippets.

@NicoVermeir
Created November 10, 2016 22:09
Show Gist options
  • Save NicoVermeir/fcb75a1e93fcd0eac131f46fabddcac1 to your computer and use it in GitHub Desktop.
Save NicoVermeir/fcb75a1e93fcd0eac131f46fabddcac1 to your computer and use it in GitHub Desktop.
private void CreateController()
{
IRadialControllerInterop interop = (IRadialControllerInterop)System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.GetActivationFactory(typeof(RadialController));
Guid guid = typeof(RadialController).GetInterface("IRadialController").GUID;
_radialController = interop.CreateForWindow(new IntPtr(_dte.ActiveWindow.HWnd), ref guid);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment