Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Title Bar Content doesn't account for NoResize ResizeMode #112

Open
itisrazza opened this issue Dec 10, 2024 · 0 comments
Open

[Bug]: Title Bar Content doesn't account for NoResize ResizeMode #112

itisrazza opened this issue Dec 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Needs-Triage

Comments

@itisrazza
Copy link

Describe the bug

I have a right-aligned button in the titlebar content and it looks like it always assumes the window controls to be a full-size (minimise, maximise and close) instead of collapsing when NoResize is set.

Steps to reproduce the bug

<controls:MicaWindow x:Class="SuperSize.Windows.SettingsWindow"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                     xmlns:controls="clr-namespace:MicaWPF.Controls;assembly=MicaWPF"
                     xmlns:local="clr-namespace:SuperSize"
                     mc:Ignorable="d"
                     Title="SuperSize Settings"
                     Width="320" Height="500"
                     ResizeMode="NoResize"
                     Closing="OnWindowClosing">
    <controls:MicaWindow.TitleBarContent>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <controls:Button Margin="5,0,0,0" Padding="4,4">
                <controls:SymbolIcon Symbol="Info24" />
            </controls:Button>
        </StackPanel>
    </controls:MicaWindow.TitleBarContent>

Expected behavior

The right-aligned content should be right next to the close button.

Screenshots

image

Windows version

Other (Please add the version in additionnal context.)

.Net Version

.NET 8.x

.MicaWPF Version

MicaWPF

Additional context

OS: Windows 11 24H2

@itisrazza itisrazza added bug Something isn't working Needs-Triage labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs-Triage
Projects
None yet
Development

No branches or pull requests

2 participants