-
Notifications
You must be signed in to change notification settings - Fork 27
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: Templatebound Margin to remove hardcoded margin #715
fix: Templatebound Margin to remove hardcoded margin #715
Conversation
@nguyeenvy can you point where is/are the change(s), there's a lot of noise caused by code-style |
@pictos As a tip when reviewing directly on GitHub you can use the "Hide whitespace" option |
src/library/Uno.Toolkit.Material/Styles/Controls/v2/CardContentControl.xaml
Show resolved
Hide resolved
The main changes are at lines 218 and 223. |
@Mergifyio backport legacy/3x release/stable/3.1 |
✅ Backports have been created
|
(cherry picked from commit df9e747) # Conflicts: # src/library/Uno.Toolkit.Material/Styles/Controls/v2/CardContentControl.xaml
(cherry picked from commit df9e747) # Conflicts: # src/library/Uno.Toolkit.Material/Styles/Controls/v2/CardContentControl.xaml
(cherry picked from commit df9e747) # Conflicts: # src/library/Uno.Toolkit.Material/Styles/Controls/v2/CardContentControl.xaml
(cherry picked from commit df9e747) # Conflicts: # src/library/Uno.Toolkit.Material/Styles/Controls/v2/CardContentControl.xaml
(cherry picked from commit df9e747) # Conflicts: # src/library/Uno.Toolkit.Material/Styles/Controls/v2/CardContentControl.xaml
closes #706
GitHub Issue (If applicable): #706
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Adding Elevated CardContentControls to an ItemsRepeater that defines its own Spacing between items causes more spacing between the cards than intended because of the margin applied to the ElevatedView
What is the new behavior?
The margin applied to the ElevatedView is now templatebound to Margin so we can set Margin=0 whenever we just want to use Spacing of the container around the CardContentControls.
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Internal Issue (If applicable):