Browse Source

Merge pull request #4622 from Kir-Antipov/can-resize-win32

Hid maximize box on Windows for CanResize="false"
pull/4639/head
danwalmsley 6 years ago
committed by GitHub
parent
commit
ce9aa3ee8f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Windows/Avalonia.Win32/WindowImpl.cs

2
src/Windows/Avalonia.Win32/WindowImpl.cs

@ -1007,10 +1007,12 @@ namespace Avalonia.Win32
if (newProperties.IsResizable)
{
style |= WindowStyles.WS_SIZEFRAME;
style |= WindowStyles.WS_MAXIMIZEBOX;
}
else
{
style &= ~WindowStyles.WS_SIZEFRAME;
style &= ~WindowStyles.WS_MAXIMIZEBOX;
}
SetStyle(style);

Loading…
Cancel
Save