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

Implement TryGetFeature on secondary previewer windows #17409

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

maxkatz6
Copy link
Member

@maxkatz6 maxkatz6 commented Nov 2, 2024

What does the pull request do?

A corner case, but still a regression.

With previewer, we have two different IWindowImpl implementations: PreviewerWindowImpl and WindowStub.
Where first one is actually used to render previewer contents, and second is only used for secondary windows opened on side, not rendered anywhere.

In one of my previous Screen PRs I moved IScreenImpl initialization to the TryGetFeature method, but haven't noticed this second WindowStub implementation. Which regressed in #17401.

Note for future: consider removing all these stubs, and instead basing previewer protocol on top of Avalonia.Headless.

Fixed issues

Fixes #17401

@maxkatz6 maxkatz6 added bug regression area-previewer backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch labels Nov 2, 2024
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.3.999-cibuild0052963-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.3.999-cibuild0052995-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul added this pull request to the merge queue Nov 3, 2024
Merged via the queue into master with commit cbbd45c Nov 3, 2024
11 checks passed
@MrJul MrJul deleted the fix-corner-case-with-previewer-screens branch November 3, 2024 14:27
@maxkatz6 maxkatz6 added backported-11.2.x and removed backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't get Screens in Design Preview in 11.2.0
3 participants