Browse Source

Use as instead of is with variable

5940-dragdrop-modal
Dominik Matijaca 5 years ago
committed by GitHub
parent
commit
de7c5456b5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/TopLevel.cs

2
src/Avalonia.Controls/TopLevel.cs

@ -286,7 +286,7 @@ namespace Avalonia.Controls
IMouseDevice IInputRoot.MouseDevice => PlatformImpl?.MouseDevice; IMouseDevice IInputRoot.MouseDevice => PlatformImpl?.MouseDevice;
/// <inheritdoc/> /// <inheritdoc/>
bool? IInputRoot.IsPlatformEnabled => PlatformImpl is IWindowImpl windowImpl? windowImpl.IsEnabled : (bool?)null; bool? IInputRoot.IsPlatformEnabled => (PlatformImpl as IWindowImpl)?.IsEnabled;
void IWeakSubscriber<ResourcesChangedEventArgs>.OnEvent(object sender, ResourcesChangedEventArgs e) void IWeakSubscriber<ResourcesChangedEventArgs>.OnEvent(object sender, ResourcesChangedEventArgs e)
{ {

Loading…
Cancel
Save