47 references to RadioButton
Microsoft.Maui.Controls (47)
Hosting\AppHostBuilderExtensions.cs (2)
106
handlersCollection.AddHandler<
RadioButton
, RadioButtonHandler>();
251
RadioButton
.RemapForControls();
RadioButton\RadioButton.cs (23)
15
public partial class RadioButton : TemplatedView, IElementConfiguration<
RadioButton
>, ITextElement, IFontElement, IBorderElement, IRadioButton
51
readonly Lazy<PlatformConfigurationRegistry<
RadioButton
>> _platformConfigurationRegistry;
57
BindableProperty.Create(nameof(Content), typeof(object), typeof(
RadioButton
), null);
61
BindableProperty.Create(nameof(Value), typeof(object), typeof(
RadioButton
), null,
62
propertyChanged: (b, o, n) => ((
RadioButton
)b).OnValuePropertyChanged());
66
nameof(IsChecked), typeof(bool), typeof(
RadioButton
), false,
67
propertyChanged: (b, o, n) => ((
RadioButton
)b).OnIsCheckedPropertyChanged((bool)n),
72
nameof(GroupName), typeof(string), typeof(
RadioButton
), null,
73
propertyChanged: (b, o, n) => ((
RadioButton
)b).OnGroupNamePropertyChanged((string)o, (string)n));
213
_platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<
RadioButton
>>(() =>
214
new PlatformConfigurationRegistry<
RadioButton
>(this));
218
public IPlatformElementConfiguration<T,
RadioButton
> On<T>() where T : IConfigPlatform
399
MessagingCenter.Subscribe<
RadioButton
, RadioButtonGroupSelectionChanged>(this,
412
MessagingCenter.Unsubscribe<
RadioButton
, RadioButtonGroupSelectionChanged>(this, RadioButtonGroup.GroupSelectionChangedMessage);
424
void HandleRadioButtonGroupSelectionChanged(
RadioButton
selected, RadioButtonGroupSelectionChanged args)
451
border.SetBinding(HorizontalOptionsProperty, static (
RadioButton
rb) => rb.HorizontalOptions, source: RelativeBindingSource.TemplatedParent);
452
border.SetBinding(VerticalOptionsProperty, static (
RadioButton
rb) => rb.VerticalOptions, source: RelativeBindingSource.TemplatedParent);
454
border.SetBinding(Border.StrokeProperty, static (
RadioButton
rb) => rb.BorderColor, source: RelativeBindingSource.TemplatedParent);
455
border.SetBinding(Border.StrokeShapeProperty, static (
RadioButton
rb) => rb.CornerRadius, source: RelativeBindingSource.TemplatedParent, converter: new CornerRadiusToShape());
456
border.SetBinding(Border.StrokeThicknessProperty, static (
RadioButton
rb) => rb.BorderWidth, source: RelativeBindingSource.TemplatedParent);
555
contentPresenter.SetBinding(MarginProperty, static (
RadioButton
radio) => radio.Padding, BindingMode.OneWay, source: RelativeBindingSource.TemplatedParent);
556
contentPresenter.SetBinding(BackgroundColorProperty, static (
RadioButton
radio) => radio.BackgroundColor, BindingMode.OneWay, source: RelativeBindingSource.TemplatedParent);
632
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.Mapper.cs (1)
14
RadioButtonHandler.Mapper.ReplaceMapping<
RadioButton
, IRadioButtonHandler>(nameof(IRadioButton.Content), MapContent);
RadioButton\RadioButton.Standard.cs (2)
6
public static void MapContent(RadioButtonHandler handler,
RadioButton
radioButton)
9
public static void MapContent(IRadioButtonHandler handler,
RadioButton
radioButton)
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))