Browse Source

Fixed designer focus issue

pull/1369/head
Nikita Tsukanov 9 years ago
parent
commit
3a42ef3463
  1. 1
      src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs

1
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");

Loading…
Cancel
Save