56 references to RadioButton
Microsoft.Maui.Controls (56)
Hosting\AppHostBuilderExtensions.cs (2)
106 handlersCollection.AddHandler<RadioButton, RadioButtonHandler>(); 251 RadioButton.RemapForControls();
RadioButton\RadioButton.cs (32)
14 public partial class RadioButton : TemplatedView, IElementConfiguration<RadioButton>, ITextElement, IFontElement, IBorderElement, IRadioButton 50 readonly Lazy<PlatformConfigurationRegistry<RadioButton>> _platformConfigurationRegistry; 56 BindableProperty.Create(nameof(Content), typeof(object), typeof(RadioButton), null); 60 BindableProperty.Create(nameof(Value), typeof(object), typeof(RadioButton), null, 61 propertyChanged: (b, o, n) => ((RadioButton)b).OnValuePropertyChanged()); 65 nameof(IsChecked), typeof(bool), typeof(RadioButton), false, 66 propertyChanged: (b, o, n) => ((RadioButton)b).OnIsCheckedPropertyChanged((bool)n), 71 nameof(GroupName), typeof(string), typeof(RadioButton), null, 72 propertyChanged: (b, o, n) => ((RadioButton)b).OnGroupNamePropertyChanged((string)o, (string)n)); 212 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<RadioButton>>(() => 213 new PlatformConfigurationRegistry<RadioButton>(this)); 217 public IPlatformElementConfiguration<T, RadioButton> On<T>() where T : IConfigPlatform 398 MessagingCenter.Subscribe<RadioButton, RadioButtonGroupSelectionChanged>(this, 411 MessagingCenter.Unsubscribe<RadioButton, RadioButtonGroupSelectionChanged>(this, RadioButtonGroup.GroupSelectionChangedMessage); 423 void HandleRadioButtonGroupSelectionChanged(RadioButton selected, RadioButtonGroupSelectionChanged args) 450 border.SetBinding(BackgroundColorProperty, static (RadioButton rb) => rb.BackgroundColor, source: RelativeBindingSource.TemplatedParent); 451 border.SetBinding(HorizontalOptionsProperty, static (RadioButton rb) => rb.HorizontalOptions, source: RelativeBindingSource.TemplatedParent); 452 border.SetBinding(MarginProperty, static (RadioButton rb) => rb.Margin, source: RelativeBindingSource.TemplatedParent); 453 border.SetBinding(OpacityProperty, static (RadioButton rb) => rb.Opacity, source: RelativeBindingSource.TemplatedParent); 454 border.SetBinding(RotationProperty, static (RadioButton rb) => rb.Rotation, source: RelativeBindingSource.TemplatedParent); 455 border.SetBinding(ScaleProperty, static (RadioButton rb) => rb.Scale, source: RelativeBindingSource.TemplatedParent); 456 border.SetBinding(ScaleXProperty, static (RadioButton rb) => rb.ScaleX, source: RelativeBindingSource.TemplatedParent); 457 border.SetBinding(ScaleYProperty, static (RadioButton rb) => rb.ScaleY, source: RelativeBindingSource.TemplatedParent); 458 border.SetBinding(TranslationYProperty, static (RadioButton rb) => rb.TranslationY, source: RelativeBindingSource.TemplatedParent); 459 border.SetBinding(TranslationXProperty, static (RadioButton rb) => rb.TranslationX, source: RelativeBindingSource.TemplatedParent); 460 border.SetBinding(VerticalOptionsProperty, static (RadioButton rb) => rb.VerticalOptions, source: RelativeBindingSource.TemplatedParent); 462 border.SetBinding(Border.StrokeProperty, static (RadioButton rb) => rb.BorderColor, source: RelativeBindingSource.TemplatedParent); 463 border.SetBinding(Border.StrokeShapeProperty, static (RadioButton rb) => rb.CornerRadius, source: RelativeBindingSource.TemplatedParent, converter: new CornerRadiusToShape()); 464 border.SetBinding(Border.StrokeThicknessProperty, static (RadioButton rb) => rb.BorderWidth, source: RelativeBindingSource.TemplatedParent); 563 contentPresenter.SetBinding(MarginProperty, static (RadioButton radio) => radio.Padding, BindingMode.OneWay, source: RelativeBindingSource.TemplatedParent); 564 contentPresenter.SetBinding(BackgroundColorProperty, static (RadioButton radio) => radio.BackgroundColor, BindingMode.OneWay, source: RelativeBindingSource.TemplatedParent); 640 Application.Current?.FindMauiContext()?.CreateLogger<RadioButton>()?.LogWarning("Warning - {RuntimePlatform} does not support View as the {PropertyName} property of RadioButton; the return value of the ToString() method will be displayed instead.", DeviceInfo.Platform, ContentProperty.PropertyName);
RadioButton\RadioButton.iOS.cs (2)
6 public static void MapContent(RadioButtonHandler handler, RadioButton radioButton) 9 public static void MapContent(IRadioButtonHandler handler, RadioButton radioButton)
RadioButton\RadioButton.Mapper.cs (1)
14 RadioButtonHandler.Mapper.ReplaceMapping<RadioButton, IRadioButtonHandler>(nameof(IRadioButton.Content), MapContent);
RadioButton\RadioButtonGroup.cs (5)
55 internal static void UpdateRadioButtonGroup(RadioButton radioButton) 69 internal static Element GroupByParent(RadioButton radioButton) 80 var rb = itor.Current as RadioButton; 82 rb.SetValueFromRenderer(RadioButton.IsCheckedProperty, false);
RadioButton\RadioButtonGroupController.cs (13)
31 MessagingCenter.Subscribe<RadioButton, RadioButtonGroupSelectionChanged>(this, 33 MessagingCenter.Subscribe<RadioButton, RadioButtonGroupNameChanged>(this, RadioButton.GroupNameChangedMessage, 35 MessagingCenter.Subscribe<RadioButton, RadioButtonValueChanged>(this, RadioButton.ValueChangedMessage, 45 void HandleRadioButtonGroupSelectionChanged(RadioButton selected, RadioButtonGroupSelectionChanged args) 55 void HandleRadioButtonGroupNameChanged(RadioButton radioButton, RadioButtonGroupNameChanged args) 65 void HandleRadioButtonValueChanged(RadioButton radioButton, RadioButtonValueChanged args) 82 if (e.Element is RadioButton radioButton) 90 if (element is RadioButton radioButton1) 98 void AddRadioButton(RadioButton radioButton) 109 radioButton.SetValue(RadioButton.IsCheckedProperty, true, specificity: SetterSpecificity.FromHandler); 115 if (!(element is RadioButton radioButton))
ViewExtensions.cs (1)
443 else if (element is RadioButton rb && bool.TryParse(text, out bool rbResult))