Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Set initial control state based on element state
Browse files Browse the repository at this point in the history
  • Loading branch information
JunielKatarn committed Jun 1, 2021
1 parent 120620d commit 1bd1238
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Xamarin.Forms.Platform.MacOS/Renderers/RadioButtonRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ protected override void OnElementChanged(ElementChangedEventArgs<RadioButton> e)
ObserveStateChange(true);

btn.Activated += HandleActivated;

if (e.NewElement.IsChecked)
Control.State = NSCellStateValue.On;
}

UpdateContent();
Expand Down

0 comments on commit 1bd1238

Please sign in to comment.