Repository navigation
Restore check for Visibility in Layouter.MeasureChild - #2089
Merged
Merged
Conversation
This is required to correctly handle collapsed IFrameworkElement children that don't have their own Layouter (eg ProgressRing on Android).
Used during debugging.
Member
|
@carldebilly do you remember why you removed it ? |
jeromelaban
approved these changes
Nov 15, 2019
Contributor
Author
It was moved from |
2 of 4 tasks
MartinZikmund
added a commit
that referenced
this pull request
Aug 14, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with Uno-only delegate types that return zero hits across the whole WinAppSDK 2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching WinUI, and the four Window*EventHandler delegates are gone (Closed already used TypedEventHandler and was only being masked for free). VisibilityChanged also carried the wrong payload: Windows.UI.Core's VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs. That type is now hand-written, which retires its NotImplemented stub; CoreWindow keeps receiving the Windows.UI.Core args it expects. The name-keyed bypass in AreEventsMatching is removed. Note the matcher compares only the type name for generics and never recurses into type arguments, so it cannot police a TypedEventHandler's payload — the args type here was reviewed by hand. Regeneration changes exactly one file: WindowVisibilityChangedEventArgs flips from a live __SKIA__ NotImplemented stub to "already declared". Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund
added a commit
that referenced
this pull request
Aug 20, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with Uno-only delegate types that return zero hits across the whole WinAppSDK 2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching WinUI, and the four Window*EventHandler delegates are gone (Closed already used TypedEventHandler and was only being masked for free). VisibilityChanged also carried the wrong payload: Windows.UI.Core's VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs. That type is now hand-written, which retires its NotImplemented stub; CoreWindow keeps receiving the Windows.UI.Core args it expects. The name-keyed bypass in AreEventsMatching is removed. Note the matcher compares only the type name for generics and never recurses into type arguments, so it cannot police a TypedEventHandler's payload — the args type here was reviewed by hand. Regeneration changes exactly one file: WindowVisibilityChangedEventArgs flips from a live __SKIA__ NotImplemented stub to "already declared". Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund
added a commit
that referenced
this pull request
Aug 21, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with Uno-only delegate types that return zero hits across the whole WinAppSDK 2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching WinUI, and the four Window*EventHandler delegates are gone (Closed already used TypedEventHandler and was only being masked for free). VisibilityChanged also carried the wrong payload: Windows.UI.Core's VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs. That type is now hand-written, which retires its NotImplemented stub; CoreWindow keeps receiving the Windows.UI.Core args it expects. The name-keyed bypass in AreEventsMatching is removed. Note the matcher compares only the type name for generics and never recurses into type arguments, so it cannot police a TypedEventHandler's payload — the args type here was reviewed by hand. Regeneration changes exactly one file: WindowVisibilityChangedEventArgs flips from a live __SKIA__ NotImplemented stub to "already declared". Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund
added a commit
that referenced
this pull request
Aug 22, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with Uno-only delegate types that return zero hits across the whole WinAppSDK 2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching WinUI, and the four Window*EventHandler delegates are gone (Closed already used TypedEventHandler and was only being masked for free). VisibilityChanged also carried the wrong payload: Windows.UI.Core's VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs. That type is now hand-written, which retires its NotImplemented stub; CoreWindow keeps receiving the Windows.UI.Core args it expects. The name-keyed bypass in AreEventsMatching is removed. Note the matcher compares only the type name for generics and never recurses into type arguments, so it cannot police a TypedEventHandler's payload — the args type here was reviewed by hand. Regeneration changes exactly one file: WindowVisibilityChangedEventArgs flips from a live __SKIA__ NotImplemented stub to "already declared". Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund
added a commit
that referenced
this pull request
Aug 28, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with Uno-only delegate types that return zero hits across the whole WinAppSDK 2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching WinUI, and the four Window*EventHandler delegates are gone (Closed already used TypedEventHandler and was only being masked for free). VisibilityChanged also carried the wrong payload: Windows.UI.Core's VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs. That type is now hand-written, which retires its NotImplemented stub; CoreWindow keeps receiving the Windows.UI.Core args it expects. The name-keyed bypass in AreEventsMatching is removed. Note the matcher compares only the type name for generics and never recurses into type arguments, so it cannot police a TypedEventHandler's payload — the args type here was reviewed by hand. Regeneration changes exactly one file: WindowVisibilityChangedEventArgs flips from a live __SKIA__ NotImplemented stub to "already declared". Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund
added a commit
that referenced
this pull request
Aug 28, 2026
The Window event retypes and the WinRT struct/member projection fixes (#2082, #2089) are user-facing breaking changes with no entry in the 7.0 migration guide, which carries one per BC. - Public API removed: the four Window*EventHandler delegates, plus the Window.VisibilityChanged payload retype from Windows.UI.Core's VisibilityChangedEventArgs to WinUI's WindowVisibilityChangedEventArgs. - New "WinRT projection alignment" section: Thickness/CornerRadius fields to properties, GridLength read-only members and its renamed ctor parameter, DataTemplate.LoadContent returning DependencyObject, and GuidHelper.Equals taking `in`. - Checklist item for the VisibilityChanged handler retype. markdownlint and cspell 8.3.2 pass on the file. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014YcPxHioM9n92waPX8i1LR
MartinZikmund
added a commit
that referenced
this pull request
Aug 29, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with Uno-only delegate types that return zero hits across the whole WinAppSDK 2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching WinUI, and the four Window*EventHandler delegates are gone (Closed already used TypedEventHandler and was only being masked for free). VisibilityChanged also carried the wrong payload: Windows.UI.Core's VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs. That type is now hand-written, which retires its NotImplemented stub; CoreWindow keeps receiving the Windows.UI.Core args it expects. The name-keyed bypass in AreEventsMatching is removed. Note the matcher compares only the type name for generics and never recurses into type arguments, so it cannot police a TypedEventHandler's payload — the args type here was reviewed by hand. Regeneration changes exactly one file: WindowVisibilityChangedEventArgs flips from a live __SKIA__ NotImplemented stub to "already declared". Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund
added a commit
that referenced
this pull request
Aug 29, 2026
The Window event retypes and the WinRT struct/member projection fixes (#2082, #2089) are user-facing breaking changes with no entry in the 7.0 migration guide, which carries one per BC. - Public API removed: the four Window*EventHandler delegates, plus the Window.VisibilityChanged payload retype from Windows.UI.Core's VisibilityChangedEventArgs to WinUI's WindowVisibilityChangedEventArgs. - New "WinRT projection alignment" section: Thickness/CornerRadius fields to properties, GridLength read-only members and its renamed ctor parameter, DataTemplate.LoadContent returning DependencyObject, and GuidHelper.Equals taking `in`. - Checklist item for the VisibilityChanged handler retype. markdownlint and cspell 8.3.2 pass on the file. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014YcPxHioM9n92waPX8i1LR
MartinZikmund
added a commit
that referenced
this pull request
Sep 1, 2026
Window.Activated, SizeChanged and VisibilityChanged were declared with Uno-only delegate types that return zero hits across the whole WinAppSDK 2.1.3 projection. They now use TypedEventHandler<object, TArgs>, matching WinUI, and the four Window*EventHandler delegates are gone (Closed already used TypedEventHandler and was only being masked for free). VisibilityChanged also carried the wrong payload: Windows.UI.Core's VisibilityChangedEventArgs instead of WinUI's WindowVisibilityChangedEventArgs. That type is now hand-written, which retires its NotImplemented stub; CoreWindow keeps receiving the Windows.UI.Core args it expects. The name-keyed bypass in AreEventsMatching is removed. Note the matcher compares only the type name for generics and never recurses into type arguments, so it cannot police a TypedEventHandler's payload — the args type here was reviewed by hand. Regeneration changes exactly one file: WindowVisibilityChangedEventArgs flips from a live __SKIA__ NotImplemented stub to "already declared". Uno.UI, Uno.UI.RemoteControl and the Win32 and macOS Skia runtimes build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016ifDe4QKvwkcq5tp4tmxX7
MartinZikmund
added a commit
that referenced
this pull request
Sep 1, 2026
The Window event retypes and the WinRT struct/member projection fixes (#2082, #2089) are user-facing breaking changes with no entry in the 7.0 migration guide, which carries one per BC. - Public API removed: the four Window*EventHandler delegates, plus the Window.VisibilityChanged payload retype from Windows.UI.Core's VisibilityChangedEventArgs to WinUI's WindowVisibilityChangedEventArgs. - New "WinRT projection alignment" section: Thickness/CornerRadius fields to properties, GridLength read-only members and its renamed ctor parameter, DataTemplate.LoadContent returning DependencyObject, and GuidHelper.Equals taking `in`. - Checklist item for the VisibilityChanged handler retype. markdownlint and cspell 8.3.2 pass on the file. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014YcPxHioM9n92waPX8i1LR
Merged
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is required to correctly handle collapsed IFrameworkElement children that don't have their own Layouter (eg ProgressRing on Android).
GitHub Issue (If applicable): fixes #2073
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):