Browse Source

implement showdialog using new apis.

pull/3943/head
Dan Walmsley 6 years ago
parent
commit
e434d68f2e
  1. 5
      src/Avalonia.Controls/Window.cs

5
src/Avalonia.Controls/Window.cs

@ -1,4 +1,5 @@
using System; using System;
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Linq; using System.Linq;
using System.Reactive.Linq; using System.Reactive.Linq;
@ -519,7 +520,9 @@ namespace Avalonia.Controls
using (BeginAutoSizing()) using (BeginAutoSizing())
{ {
PlatformImpl?.ShowDialog(owner.PlatformImpl); PlatformImpl.SetParent(owner.PlatformImpl);
owner.PlatformImpl.SetEnabled(false);
PlatformImpl?.Show();
Renderer?.Start(); Renderer?.Start();

Loading…
Cancel
Save