From 3a42ef34633a52e899c56ee8878013a0ca413a99 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Tue, 13 Feb 2018 09:19:58 +0300 Subject: [PATCH] Fixed designer focus issue --- src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs b/src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs index c4febff434..f5893ae69a 100644 --- a/src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs +++ b/src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs @@ -140,6 +140,7 @@ namespace Avalonia.DesignerSupport.Remote BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); if (builderMethod == null) throw Die($"{entryPoint.DeclaringType.FullName} doesn't have a method named {BuilderMethodName}"); + Design.IsDesignMode = true; Log($"Obtaining AppBuilder instance from {builderMethod.DeclaringType.FullName}.{builderMethod.Name}"); var appBuilder = builderMethod.Invoke(null, null); Log($"Initializing application in design mode");