Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Fix issue that radiobutton label was not shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
keiji committed Dec 7, 2021
1 parent 147815d commit 758c7f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Covid19Radar/Covid19Radar/Views/HomePage/NotifyOtherPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
TextColor="Black"
FontSize="Medium"
CheckedChanged="OnRadioButtonCheckedChanged"
Value="{x:Static resources:AppResources.NotifyOtherPageRadioButtonYes}"
Content="{x:Static resources:AppResources.NotifyOtherPageRadioButtonYes}"
GroupName="CheckSymptoms" />
<RadioButton
AutomationProperties.IsInAccessibleTree="True"
TextColor="Black"
FontSize="Medium"
CheckedChanged="OnRadioButtonCheckedChanged"
Value="{x:Static resources:AppResources.NotifyOtherPageRadioButtonNo}"
Content="{x:Static resources:AppResources.NotifyOtherPageRadioButtonNo}"
GroupName="CheckSymptoms" />
</StackLayout>
<StackLayout Margin="0, 15, 0, 0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void OnRadioButtonCheckedChanged(object sender, CheckedChangedEventArgs e)
var button = (RadioButton)sender;
if (button.IsChecked)
{
(BindingContext as NotifyOtherPageViewModel).OnClickRadioButtonIsTrueCommand(button.Value.ToString());
(BindingContext as NotifyOtherPageViewModel).OnClickRadioButtonIsTrueCommand(button.Content.ToString());
}
}
}
Expand Down

0 comments on commit 758c7f5

Please sign in to comment.