From e76f5b8f35222f030f54c9f555da73128dbb795d Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Fri, 4 Sep 2015 19:20:06 +0300 Subject: [PATCH] Use default PopupImpl even in embedded mode --- src/Windows/Perspex.Win32/Win32Platform.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Windows/Perspex.Win32/Win32Platform.cs b/src/Windows/Perspex.Win32/Win32Platform.cs index 7884b7f05a..2b08fb9182 100644 --- a/src/Windows/Perspex.Win32/Win32Platform.cs +++ b/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(); }