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

Windows 11 integration #4140

Closed
9 tasks
Nuklon opened this issue Jun 29, 2021 · 9 comments · Fixed by ControlzEx/ControlzEx#151
Closed
9 tasks

Windows 11 integration #4140

Nuklon opened this issue Jun 29, 2021 · 9 comments · Fixed by ControlzEx/ControlzEx#151

Comments

@Nuklon
Copy link
Contributor

Nuklon commented Jun 29, 2021

Describe the feature

I'm opening this request with a checklist for the upcoming Windows 11 release, I can append where necessary.

  • Snap Layouts integration, see the screenshot below. Right now the maximize button from MahApps isn't detected.
    image
  • Rounded corners at main window, e.g. with a CornerRadius.
  • Restyled HamburgerMenu, this is pretty similar to the already existing CreatorsUpdate style, but with some additional padding and rounded corners. See below:
    image
  • Rounded flat buttons:
    image
  • Rounded context menus.
    image
  • Rounded tooltips.
  • Restyled radio buttons:
    image
  • Restyled check boxes:
    image
  • Style/colors (light & dark).
@DimitarCC
Copy link

Regarding the snap layouts integration...its not so easy. I did this for my own windows (WPF) with custom chrome and its real pain.
You have to detect btton hover and then to handle wndproc WM_NCHITTEST message and to return 9 to it. its really pain in WPF.
Oh and that work but only if you have custom chrome and GlassFrameThickness != 0.

@paulober
Copy link

I think this could be something to deal with if Windows 11 was officially released for the public and maybe some APIs changed to be more developer-friendly. But a must-have is the rounded corners, rounded context menus, and rounded buttons. Is this something you can integrate?

@timunie
Copy link
Collaborator

timunie commented Jul 21, 2021

Hi @PavLL

I think the bottle-neck here is that it heavily depends on the free time available as it is a free-time project. So yes, it can be integrated and works already for some controls but when it will be done for every control, nobody knows yet. I hope for your understanding.

Happy coding Tim

@paulober
Copy link

Hi @timunie

Sure, I can understand that. Just wanted to make sure that this is on the "roadmap" ;).

Paul

@timunie
Copy link
Collaborator

timunie commented Aug 23, 2021

I am just leaving this link here: https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-rounded-corners

It shows how to apply rounded corners

@carloslubbers
Copy link

I'm also interested in the Windows 11 style, especially the rounded corners on the main window.

For now, to achieve this result I've set the following properties on my MetroWindow and Windows 11 seems to properly round the corners for me:

    <Setter.Value>
        <WindowChrome CaptionHeight="0"/>
    </Setter.Value>
</Setter>
<Setter Property="WindowStyle" Value="None"/>

This doesn't play well with the glow brush, but since I'm not using it this is fine for me.

ControlzEx seems to also be working on an update on the WindowChromeBehavior to possibly allow for the snap layouts and rounded corners:
dotnet/wpf#4825 (comment)
https://github.com/ControlzEx/ControlzEx/tree/features/Win11Support

@Nuklon
Copy link
Contributor Author

Nuklon commented Jan 29, 2022

I don't think this should be closed, there are more items added than just window.

@punker76
Copy link
Member

@Nuklon I will create a new one or re-open this with some sub tasks.

@batzen
Copy link
Collaborator

batzen commented Jan 29, 2022

My mistake. Sorry. I should only have referenced this issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

7 participants