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(); }