-
Notifications
You must be signed in to change notification settings - Fork 698
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
Add a MirroredWhenRightToLeft API to AnimatedIcon #5023
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -22,13 +22,17 @@ unsealed runtimeclass AnimatedIcon : Windows.UI.Xaml.Controls.IconElement | |||
[MUX_PROPERTY_CHANGED_CALLBACK(TRUE)] | |||
IconSource FallbackIconSource{ get; set; }; | |||
|
|||
[MUX_PROPERTY_CHANGED_CALLBACK(TRUE)] | |||
Boolean MirroredWhenRightToLeft{ get; set; }; |
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.
Do we need to update any of our usages to set this property to non default ?
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.
Some Icons have specific Right to Left versions which are not just mirrors. Is there a good way to swap out the Animated Icon and Fallback, for those cases?
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.
… NavigationViewBackButton to mirror.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Some animated icons should be mirrored when the flow direction is RTL, like the BackButton. Some should not, like the checkmark. This PR adds an API to animated icon that allows opting into mirroring on a per animated icon basis. The default is to not mirror, which is a change in behavior.