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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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); |
|
|
|
|