-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Windows] Fix for IndicatorView using templated icons not working #28905
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
[Windows] Fix for IndicatorView using templated icons not working #28905
Conversation
…ing ) SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 committed last week
public void IndicatorViewWithTemplatedIcon() | ||
{ | ||
App.WaitForElement("descriptionLabel"); | ||
VerifyScreenshot(); |
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 in all platforms.
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.
@jsuarezruiz , I've attached the screenshots for the Android and iOS platforms. I will add the screenshots for the other platforms in the next CI run.
434dece
to
3ae6618
Compare
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -36,8 +36,10 @@ public void SetIndicatorView(IIndicatorView indicatorView) | |||
|
|||
internal void UpdateIndicatorsColor() | |||
{ | |||
if (_indicatorView == null) | |||
if (_indicatorView is null || (_indicatorView is ITemplatedIndicatorView templatedView && templatedView.IndicatorsLayoutOverride is not 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.
This condition is repeated 2 times, can create an internal property like:
internal bool UseShapeIndicator =>
_indicatorView == null ||
(_indicatorView is ITemplatedIndicatorView templatedView && templatedView.IndicatorsLayoutOverride != null);
if (UseShapeIndicator)
{
}
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.
@jsuarezruiz , Thanks for the suggestion! I've updated the code to use an internal property as you recommended.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
…8905) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 committed last week * Have added snapshots for iOS and Android * Have added the snapshots * [Windows] Fix for 7144 ( IndicatorView using templated icons not working )
…8905) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 committed last week * Have added snapshots for iOS and Android * Have added the snapshots * [Windows] Fix for 7144 ( IndicatorView using templated icons not working )
…tnet#28905) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 committed last week * Have added snapshots for iOS and Android * Have added the snapshots * [Windows] Fix for 7144 ( IndicatorView using templated icons not working )
…tnet#28905) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 committed last week * Have added snapshots for iOS and Android * Have added the snapshots * [Windows] Fix for 7144 ( IndicatorView using templated icons not working )
…8905) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 committed last week * Have added snapshots for iOS and Android * Have added the snapshots * [Windows] Fix for 7144 ( IndicatorView using templated icons not working )
…tnet#28905) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) * [Windows] Fix for 7144 ( IndicatorView using templated icons not working ) SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 committed last week * Have added snapshots for iOS and Android * Have added the snapshots * [Windows] Fix for 7144 ( IndicatorView using templated icons not working )
Issue Details
Root Cause
Description
Validated the behaviour in the following platforms
Issues Fixed
Fixes #7144
Output