|
|
|
@ -169,10 +169,6 @@ namespace Avalonia.Controls |
|
|
|
/// </summary>
|
|
|
|
public static readonly RoutedEvent<RoutedEventArgs> WindowOpenedEvent = |
|
|
|
RoutedEvent.Register<Window, RoutedEventArgs>("WindowOpened", RoutingStrategies.Direct); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private readonly NameScope _nameScope = new NameScope(); |
|
|
|
private object? _dialogResult; |
|
|
|
private readonly Size _maxPlatformClientSize; |
|
|
|
private WindowStartupLocation _windowStartupLocation; |
|
|
|
@ -235,7 +231,7 @@ namespace Avalonia.Controls |
|
|
|
impl.GotInputWhenDisabled = OnGotInputWhenDisabled; |
|
|
|
impl.WindowStateChanged = HandleWindowStateChanged; |
|
|
|
_maxPlatformClientSize = PlatformImpl?.MaxAutoSizeHint ?? default(Size); |
|
|
|
impl.ExtendClientAreaToDecorationsChanged = ExtendClientAreaToDecorationsChanged; |
|
|
|
impl.ExtendClientAreaToDecorationsChanged = ExtendClientAreaToDecorationsChanged; |
|
|
|
this.GetObservable(ClientSizeProperty).Skip(1).Subscribe(x => PlatformImpl?.Resize(x, PlatformResizeReason.Application)); |
|
|
|
|
|
|
|
PlatformImpl?.ShowTaskbarIcon(ShowInTaskbar); |
|
|
|
|