Browse Source

Move TryGetPlatformHandle to TopLevel Fix

pull/11474/head
FitDev 3 years ago
parent
commit
ee1ef13ff2
  1. 2
      src/Avalonia.Controls/TopLevel.cs

2
src/Avalonia.Controls/TopLevel.cs

@ -383,7 +383,7 @@ namespace Avalonia.Controls
/// An <see cref="IPlatformHandle"/> describing the window handle, or null if the handle /// An <see cref="IPlatformHandle"/> describing the window handle, or null if the handle
/// could not be retrieved. /// could not be retrieved.
/// </returns> /// </returns>
public IPlatformHandle? TryGetPlatformHandle() => PlatformImpl?.Handle; public IPlatformHandle? TryGetPlatformHandle() => ((IWindowBaseImpl?) PlatformImpl)?.Handle;
/// <summary> /// <summary>
/// Trys to get the platform handle for the TopLevel-derived control. /// Trys to get the platform handle for the TopLevel-derived control.

Loading…
Cancel
Save