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

[net9.0] [Windows] Add TitleBar Control #23845

Merged
merged 2 commits into from
Jul 26, 2024
Merged

[net9.0] [Windows] Add TitleBar Control #23845

merged 2 commits into from
Jul 26, 2024

Conversation

mattleibow
Copy link
Member

Description of Change

Reland of #23019 but onto net9.0.

The main PR was reverted here: #23844

* Custom titlebar control support spike

* handle titlebar hit test elements automatically

* sample

* Added TitleBar property to Window: you can now set titlebar properties on the Window such as leading + trailing content, color, etc.

* Add inactive colors for background + foreground
Fix hide/show titlebar control not working

* Fix issue w/ titlebar unhook on window close
Add titlebar to sample page

* Added `Window.SetTitleBar` function to set the window titlebar. This allows XAML defined titlebars w/ bindings

* Revert some changes

* Revert changes
Fix PublicAPI defs

* Error checkAdditional error checks for page nav

* Update ITitlebar interface

* Titlebar control is now a TemplatedView

* Remove `SetTitlebar` API
Update sample

* Remove child

* Use pattern matching

* Add some docs

* Fix missing publicapi bits

* More public api bits

* Missed some

* Fix use of content presenter

* Adjust passthrough logic

* Fix titlebar height adjust for caption buttons

* Fix override of default template not working

* Cleanup

* Fix default control template not being applied
Add default style for TitleBar

* Fix missing API for tizen

* Fix sample issue
Update sample

* Fix missing title + icon when titlebar is not fully set
Fix titlebar title spacing w/ default behavior
Fix titlebar content added not allowing hit test
Fix missing public API

* Add IgnoreSafeArea for macOS

* Tizen

* Fix titlebar being set on window creation w/ template selector

* Comment out templates

---------

Co-authored-by: Mike Corsaro <mikecorsaro@microsoft.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
# Conflicts:
#	src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net-tizen/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txt
#	src/Core/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt
@mattleibow mattleibow requested a review from a team as a code owner July 26, 2024 06:40
@PureWeen PureWeen added this to the 9.0-preview7 milestone Jul 26, 2024
@mattleibow mattleibow enabled auto-merge (squash) July 26, 2024 17:17
@rmarinho rmarinho disabled auto-merge July 26, 2024 18:05
@rmarinho rmarinho merged commit b521bfc into net9.0 Jul 26, 2024
106 of 112 checks passed
@rmarinho rmarinho deleted the dev/titlebar-net9 branch July 26, 2024 18:05
@StonyGround
Copy link

By the way, when is this feature expected to be released?

@samhouts samhouts added the fixed-in-net9.0-nightly This may be available in a nightly release! label Aug 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2024
@samhouts samhouts added the fixed-in-net8.0-nightly This may be available in a nightly release! label Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-net8.0-nightly This may be available in a nightly release! fixed-in-net9.0-nightly This may be available in a nightly release!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants