Xamarin.Forms.InputKit icon indicating copy to clipboard operation
Xamarin.Forms.InputKit copied to clipboard

RadioButton does not render the circle/selection in UWP

Open vchelaru opened this issue 5 years ago • 5 comments

Describe the bug Radio buttons (which render properly on iOS and Android) do not render properly on UWP.

To Reproduce

  1. Create a UWP project
  2. Create a page
  3. Add radio buttons to the page
  4. Run the app in UWP
  5. Observe that radio buttons do not show their left-side graphics, but text does render

Additional information: The radio buttons do function properly - they can be checked and they do update the view model properly, so it seems to be a visual issue.

** Example Code **

var group = new RadioButtonGroupView();
stackLayout.Children.Add(group);

var firstRadio = new RadioButton();
firstRadio.TextColor = Color.Black;
firstRadio.Text = "First";
group.Children.Add(firstRadio);


var secondRadio = new RadioButton();
secondRadio.TextColor = Color.Black;
secondRadio.Text = "Second";
group.Children.Add(secondRadio);

var thirdRadioButton = new RadioButton();
thirdRadioButton.TextColor = Color.Black;
thirdRadioButton.Text = "Third";
group.Children.Add(thirdRadioButton);

var fourthRadioButton = new RadioButton();
fourthRadioButton.TextColor = Color.Black;
fourthRadioButton.Text = "Fourth";
group.Children.Add(fourthRadioButton);

Expected behavior The radio button should render its circle, and the circle should be filled-in if the radio button is checked.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10

Smartphone (please complete the following information):

  • Device: Motorola Moto G6
  • OS: Android 8.0

Additional context

vchelaru avatar May 29 '19 19:05 vchelaru

Just want to say that I am experiencing the same bug with UWP. I know that support for UWP is officially "EXPERIMENTAL" but would love to see this fixed :) thanks

cortensinger avatar May 31 '19 05:05 cortensinger

UWP is not offically supported. I just merge new Pull Request for UWP.

enisn avatar Jun 16 '19 19:06 enisn

Any workaround for this ?

Nambukarthy avatar Apr 19 '21 05:04 Nambukarthy

still the same problem @enisn

AhmedAdelGadElkareeem avatar Dec 22 '21 14:12 AhmedAdelGadElkareeem

https://github.com/enisn/Xamarin.Forms.InputKit/blob/rel-3.7/InputKit/Platforms/UWP/IconViewRenderer.cs

IconView implementation doesn't work properly on UWP. It should create an image and tint with given color but it can't do that after a version of UWP but I'm not sure which one it is.

enisn avatar Dec 23 '21 08:12 enisn

This issue is closed since v4.0 supports Windows platform

enisn avatar Aug 30 '22 21:08 enisn