-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RadioButton] Fix Issue with BorderWidth, Incorrect spacing in Defaul…
…t Control Template. (#13407) ### Description of Change This adapts a previously submitted PR that was closed before it was reviewed: #8292 The underlying Frame was changed to a Border to support BorderWidth attribute not working. An addition of column spacing to the underlying grid fixes the ellipse being too close to the content text, and additional padding of the grid prevents it from clipping. |Before|After |-|-| |<img src="https://user-images.githubusercontent.com/89540402/219554040-bb99be54-1ac4-42ca-8bc9-e74dc25a6379.png" width="500">|<img src="https://user-images.githubusercontent.com/89540402/219552560-cd800385-614a-4e45-90fe-b52fbca836fb.png" width="500">| |Before|After |-|-| |<img src="https://user-images.githubusercontent.com/89540402/219554003-224ce46f-1fd0-40dc-8018-d796ef684faf.png" width="500">|<img src="https://user-images.githubusercontent.com/89540402/219552652-65d4d6f8-0082-4d75-8061-e51476101e92.png" width="500">| Question that arose: According to docs for RadioButton, CornerRadius is set to be an integer: [CornerRadius](https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.radiobutton.cornerradius?view=net-maui-7.0#microsoft-maui-controls-radiobutton-cornerradius) however, Corner Radius use double values: [Corner Radius Constructor](https://github.com/dotnet/maui/blob/05602026058836d0c1895e070aae4cb12c408c1d/src/Core/src/Primitives/CornerRadius.cs#L24). Should I change the API to reflect this? ### Issues Fixed Fixes #8291
- Loading branch information
Showing
2 changed files
with
84 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters