-
Notifications
You must be signed in to change notification settings - Fork 730
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
fix: View not removed and Unloaded event not raised #3728
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
3d3426d
to
56d3da5
Compare
Can you add a runtime test validating the behavior ? |
b49b793
to
ab27ae7
Compare
The build 18548 found UI Test snapshots differences: Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TL;JA
The build 18558 found UI Test snapshots differences: Details
|
The build 18558 found UI Test snapshots differences: Details
|
The build 18558 found UI Test snapshots differences: Details
|
… leaking on WASM, cause the UI test to fail on CI)
2296b4d
to
b617eab
Compare
The build 19642 found UI Test snapshots differences: Details
|
The build 19642 found UI Test snapshots differences: Details
|
The build 19642 found UI Test snapshots differences: Details
|
The build 19642 found UI Test snapshots differences: Details
|
The build 19642 found UI Test snapshots differences: Details
|
The build 19651 found UI Test snapshots differences: Details
|
The build 19651 found UI Test snapshots differences: Details
|
The build 19651 found UI Test snapshots differences: Details
|
The build 19651 found UI Test snapshots differences: Details
|
The build 19651 found UI Test snapshots differences: Details
|
internal protected readonly ILogger _log; | ||
private protected readonly ILogger _logDebug; | ||
|
||
private readonly bool _isFrameworkElement; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Remove unassigned field '_isFrameworkElement', or set its value.
@@ -11,6 +11,7 @@ public partial class UIElement : DependencyObject | |||
{ | |||
public UIElement() | |||
{ | |||
_isFrameworkElement = this is FrameworkElement; // Avoids unused field error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public UIElement() | ||
{ | ||
_log = this.Log(); | ||
_logDebug = _log.IsEnabled(LogLevel.Debug) ? _log : null; | ||
_isFrameworkElement = this is FrameworkElement; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build 19668 found UI Test snapshots differences: Details
|
The build 19668 found UI Test snapshots differences: Details
|
Bugfix
Some views, like the
ScrollBar
are leakingWhat is the current behavior?
On a given platform the view were not actually removed from the visual tree and the
UIElement.Unloaded
event is not raised.What is the new behavior?
🙃
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.