enisn / UraniumUI

Uranium is a Free & Open-Source UI Kit for MAUI.
Apache License 2.0
1.19k stars 143 forks source link

Material RadioButtons misbehaving #371

Open YBTopaz8 opened 1 year ago

YBTopaz8 commented 1 year ago

I have a RadioGroupView Containing 2 or more buttons, like here

<material:RadioButton Text="button1" Clicked="RadioButton_Clicked"/>
<material:RadioButton Text="button2" Clicked="RadioButton_Clicked_1"/>
<material:RadioButton Text="button3" Clicked="RadioButton_Clicked_2"/>
</material:RadioButtonGroupView>

their code behinds are as such

private void RadioButton_Clicked(object sender, EventArgs e)
{
    Debug.WriteLine("Clicked btn 1");
}
private void RadioButton_Clicked_1(object sender, EventArgs e)
{
     Debug.WriteLine("Clicked btn 2");
}
private void RadioButton_Clicked_2(object sender, EventArgs e)
{
   Debug.WriteLine("Clicked btn 3");
}

ISSUE

I thought it was my view/viewmodel that was disturbing, but i tested on a clean page but the issue persisted

Short video showing my case.

https://github.com/enisn/UraniumUI/assets/41630728/4bc10e70-af1d-47b4-8057-b54f77e540b8

enisn commented 1 year ago

This event behaviour is like CheckChanged but the name is Clicked. I'll separate the events 👍

YBTopaz8 commented 1 year ago

Thanks ! Love your work!!