56 references to RadioButton
Microsoft.Maui.Controls (56)
Hosting\AppHostBuilderExtensions.cs (2)
106
handlersCollection.AddHandler<
RadioButton
, RadioButtonHandler>();
245
RadioButton
.RemapForControls();
RadioButton\RadioButton.cs (32)
12
public partial class RadioButton : TemplatedView, IElementConfiguration<
RadioButton
>, ITextElement, IFontElement, IBorderElement, IRadioButton
48
readonly Lazy<PlatformConfigurationRegistry<
RadioButton
>> _platformConfigurationRegistry;
54
BindableProperty.Create(nameof(Content), typeof(object), typeof(
RadioButton
), null);
58
BindableProperty.Create(nameof(Value), typeof(object), typeof(
RadioButton
), null,
59
propertyChanged: (b, o, n) => ((
RadioButton
)b).OnValuePropertyChanged());
63
nameof(IsChecked), typeof(bool), typeof(
RadioButton
), false,
64
propertyChanged: (b, o, n) => ((
RadioButton
)b).OnIsCheckedPropertyChanged((bool)n),
69
nameof(GroupName), typeof(string), typeof(
RadioButton
), null,
70
propertyChanged: (b, o, n) => ((
RadioButton
)b).OnGroupNamePropertyChanged((string)o, (string)n));
210
_platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<
RadioButton
>>(() =>
211
new PlatformConfigurationRegistry<
RadioButton
>(this));
215
public IPlatformElementConfiguration<T,
RadioButton
> On<T>() where T : IConfigPlatform
396
MessagingCenter.Subscribe<
RadioButton
, RadioButtonGroupSelectionChanged>(this,
409
MessagingCenter.Unsubscribe<
RadioButton
, RadioButtonGroupSelectionChanged>(this, RadioButtonGroup.GroupSelectionChangedMessage);
421
void HandleRadioButtonGroupSelectionChanged(
RadioButton
selected, RadioButtonGroupSelectionChanged args)
448
border.SetBinding(BackgroundColorProperty, static (
RadioButton
rb) => rb.BackgroundColor, source: RelativeBindingSource.TemplatedParent);
449
border.SetBinding(HorizontalOptionsProperty, static (
RadioButton
rb) => rb.HorizontalOptions, source: RelativeBindingSource.TemplatedParent);
450
border.SetBinding(MarginProperty, static (
RadioButton
rb) => rb.Margin, source: RelativeBindingSource.TemplatedParent);
451
border.SetBinding(OpacityProperty, static (
RadioButton
rb) => rb.Opacity, source: RelativeBindingSource.TemplatedParent);
452
border.SetBinding(RotationProperty, static (
RadioButton
rb) => rb.Rotation, source: RelativeBindingSource.TemplatedParent);
453
border.SetBinding(ScaleProperty, static (
RadioButton
rb) => rb.Scale, source: RelativeBindingSource.TemplatedParent);
454
border.SetBinding(ScaleXProperty, static (
RadioButton
rb) => rb.ScaleX, source: RelativeBindingSource.TemplatedParent);
455
border.SetBinding(ScaleYProperty, static (
RadioButton
rb) => rb.ScaleY, source: RelativeBindingSource.TemplatedParent);
456
border.SetBinding(TranslationYProperty, static (
RadioButton
rb) => rb.TranslationY, source: RelativeBindingSource.TemplatedParent);
457
border.SetBinding(TranslationXProperty, static (
RadioButton
rb) => rb.TranslationX, source: RelativeBindingSource.TemplatedParent);
458
border.SetBinding(VerticalOptionsProperty, static (
RadioButton
rb) => rb.VerticalOptions, source: RelativeBindingSource.TemplatedParent);
460
border.SetBinding(Border.StrokeProperty, static (
RadioButton
rb) => rb.BorderColor, source: RelativeBindingSource.TemplatedParent);
461
border.SetBinding(Border.StrokeShapeProperty, static (
RadioButton
rb) => rb.CornerRadius, source: RelativeBindingSource.TemplatedParent, converter: new CornerRadiusToShape());
462
border.SetBinding(Border.StrokeThicknessProperty, static (
RadioButton
rb) => rb.BorderWidth, source: RelativeBindingSource.TemplatedParent);
561
contentPresenter.SetBinding(MarginProperty, static (
RadioButton
radio) => radio.Padding, BindingMode.OneWay, source: RelativeBindingSource.TemplatedParent);
562
contentPresenter.SetBinding(BackgroundColorProperty, static (
RadioButton
radio) => radio.BackgroundColor, BindingMode.OneWay, source: RelativeBindingSource.TemplatedParent);
638
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))