-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Windows] Fixed Shell flyout background image does not displayed #28977
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
Conversation
Hey there @@SubhikshaSf4851! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
} | ||
|
||
var service = provider.GetRequiredImageSourceService(imageSource); | ||
var nativeImageSource = await service.GetImageSourceAsync(imageSource); |
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.
if nativeImageSource
is null at this point, can directly set the pane background to null.
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.
I have updated the requested changes
c5ab0b6
to
fa90415
Compare
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
fa90415
to
c5ab0b6
Compare
{ | ||
public Issue21472ContentPage() | ||
{ | ||
Content = new Label |
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.
To cover all the scenarios, could this be replaced by a Button and tapping it set the FlyoutBackgroundImage
to null? In this way, with the test we can verify that we can set the background image and also remove it.
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.
I have modified the test sample as per your suggestion
c5ab0b6
to
258a93b
Compare
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
|
||
[Test, Order(2)] | ||
[Category(UITestCategories.Shell)] | ||
public void VerifyShellFlyoutBackgroundImageSetNull() |
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.
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.
Pending Snapshots were added.
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
) * [Windows] Fix for FlyoutBackgroundImage * [Windows] Fix for Flyout Background Image * Test case sample for FlyoutBackgroundImage * [Windows] Fix for FlyoutBackgroundImage * [Windows] Fix for FlyoutBackgroundImage * Updated Test sample * Changed test sample and added snapshots for android and iOS * BackgroundImage set Snapshot for windows and mac * BackgroundImage set Null Snapshot for windows and mac
Root Cause :
The FlyoutBackgroundImage and FlyoutBackgroundImageAspect were not implemented in Shell, resulting in the Flyout background image not being rendered on the Windows platform.
Description of Change:
I have implemented the necessary mappers for FlyoutBackgroundImage and FlyoutBackgroundImageAspect, updated them, and resolved the issue
Tested the behaviour in the following platforms
Issue Fixed:
Fixes #21472
Screenshot