Skip to content

Commit

Permalink
Avoid crash with invalid casting using RadioButtonGroup.GroupName wit…
Browse files Browse the repository at this point in the history
…h a View (dotnet#7438) Fixes dotnet#7347
  • Loading branch information
jsuarezruiz authored May 30, 2022
1 parent bd61338 commit 142aa9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controls/src/Core/RadioButtonGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static class RadioButtonGroup

static readonly BindableProperty RadioButtonGroupControllerProperty =
BindableProperty.CreateAttached("RadioButtonGroupController", typeof(RadioButtonGroupController), typeof(Maui.ILayout), default(RadioButtonGroupController),
defaultValueCreator: (b) => new RadioButtonGroupController((Maui.ILayout)b),
defaultValueCreator: (b) => new RadioButtonGroupController(b as Maui.ILayout),
propertyChanged: (b, o, n) => OnControllerChanged(b, (RadioButtonGroupController)o, (RadioButtonGroupController)n));

static RadioButtonGroupController GetRadioButtonGroupController(BindableObject b)
Expand Down

0 comments on commit 142aa9d

Please sign in to comment.