Browse Source

Use default PopupImpl even in embedded mode

pull/103/head
Nikita Tsukanov 11 years ago
parent
commit
e76f5b8f35
  1. 3
      src/Windows/Perspex.Win32/Win32Platform.cs

3
src/Windows/Perspex.Win32/Win32Platform.cs

@ -51,6 +51,7 @@ namespace Perspex.Win32
private static void InitializeInternal()
{
var locator = Locator.CurrentMutable;
locator.Register(() => new PopupImpl(), typeof(IPopupImpl));
locator.Register(() => WindowsKeyboardDevice.Instance, typeof(IKeyboardDevice));
locator.Register(() => WindowsMouseDevice.Instance, typeof(IMouseDevice));
@ -62,7 +63,6 @@ namespace Perspex.Win32
public static void Initialize()
{
var locator = Locator.CurrentMutable;
locator.Register(() => new PopupImpl(), typeof(IPopupImpl));
locator.Register(() => new WindowImpl(), typeof(IWindowImpl));
InitializeInternal();
}
@ -70,7 +70,6 @@ namespace Perspex.Win32
public static void InitializeEmbedded()
{
var locator = Locator.CurrentMutable;
locator.Register(() => new EmbeddedWindowImpl(), typeof(IPopupImpl));
locator.Register(() => new EmbeddedWindowImpl(), typeof(IWindowImpl));
InitializeInternal();
}

Loading…
Cancel
Save