Skip to content

NonMaximizableWindowWorkaround

HO-COOH edited this page Mar 22, 2026 · 2 revisions

NonMaximizableWindowWorkaround

Properties (WinUI3 IDL)

Name IsDependencyProperty Description
Window Microsoft.UI.Xaml.Window property.
IsMaximizable Boolean property.

Helper for workaround setting IsMaximizable=false but you are still able to maximize the window but double-tapping on the title bar.

Simply delcare it under any Resource under a control that is inside a Window. Usage:

<Window ...>
    <StackPanel>
        <StackPanel.Resource>
            <essential:NonMaximizableWindowWorkaround Window="{x:Bind}"/>
        </StackPanel.Resource>
    </StackPanel>
    ...
</Window>

Clone this wiki locally