38 references to TwoWay
Microsoft.Maui.Controls (37)
BindableObject.cs (1)
289 => SetBinding(targetProperty, binding, binding != null && targetProperty != null && binding.GetRealizedMode(targetProperty) == BindingMode.TwoWay ? SetterSpecificity.FromHandler : SetterSpecificity.FromBinding);
BindableProperty.cs (1)
89 if (defaultBindingMode != BindingMode.Default && defaultBindingMode != BindingMode.OneWay && defaultBindingMode != BindingMode.OneWayToSource && defaultBindingMode != BindingMode.TwoWay && defaultBindingMode != BindingMode.OneTime)
BindingBase.cs (1)
33 && value != BindingMode.TwoWay
BindingBaseExtensions.cs (1)
13 if (mode == BindingMode.TwoWay && property.IsReadOnly)
BindingExpression.cs (3)
127 bool needsGetter = (mode == BindingMode.TwoWay && !fromTarget) || mode == BindingMode.OneWay || mode == BindingMode.OneTime; 128 bool needsSetter = !needsGetter && ((mode == BindingMode.TwoWay && fromTarget) || mode == BindingMode.OneWayToSource); 157 if (part.NextPart != null && (mode == BindingMode.OneWay || mode == BindingMode.TwoWay)
Cells\EntryCell.cs (1)
12 public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(EntryCell), null, BindingMode.TwoWay);
Cells\SwitchCell.cs (1)
15 }, defaultBindingMode: BindingMode.TwoWay);
CheckBox\CheckBox.cs (1)
22 }, defaultBindingMode: BindingMode.TwoWay);
Compatibility\iOS\Extensions\UIViewExtensions.cs (1)
69 if (bindingBase.Mode == BindingMode.TwoWay)
DatePicker\DatePicker.cs (1)
15 public static readonly BindableProperty DateProperty = BindableProperty.Create(nameof(Date), typeof(DateTime), typeof(DatePicker), default(DateTime), BindingMode.TwoWay,
IndicatorView\IndicatorView.cs (1)
21 public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(int), typeof(IndicatorView), default(int), BindingMode.TwoWay);
InputView\InputView.cs (1)
12 public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(InputView), defaultBindingMode: BindingMode.TwoWay,
Items\CarouselView.cs (2)
97 BindableProperty.Create(nameof(CurrentItem), typeof(object), typeof(CarouselView), default, BindingMode.TwoWay, 154 BindableProperty.Create(nameof(Position), typeof(int), typeof(CarouselView), default(int), BindingMode.TwoWay,
Items\SelectableItemsView.cs (1)
19 defaultBindingMode: BindingMode.TwoWay,
ListView\ListView.cs (1)
31 public static readonly BindableProperty IsRefreshingProperty = BindableProperty.Create(nameof(IsRefreshing), typeof(bool), typeof(ListView), false, BindingMode.TwoWay);
MultiPage.cs (1)
25 public static readonly BindableProperty SelectedItemProperty = BindableProperty.Create(nameof(SelectedItem), typeof(object), typeof(MultiPage<>), null, BindingMode.TwoWay);
Picker\Picker.cs (2)
34 BindableProperty.Create(nameof(SelectedIndex), typeof(int), typeof(Picker), -1, BindingMode.TwoWay, 44 BindableProperty.Create(nameof(SelectedItem), typeof(object), typeof(Picker), null, BindingMode.TwoWay,
RadioButton\RadioButton.cs (1)
65 defaultBindingMode: BindingMode.TwoWay);
RadioButton\RadioButtonGroup.cs (1)
41 defaultBindingMode: BindingMode.TwoWay,
RefreshView\RefreshView.cs (1)
30 BindableProperty.Create(nameof(IsRefreshing), typeof(bool), typeof(RefreshView), false, BindingMode.TwoWay, coerceValue: OnIsRefreshingPropertyCoerced, propertyChanged: OnIsRefreshingPropertyChanged);
Shell\BaseShellItem.cs (1)
53 BindableProperty.Create(nameof(Title), typeof(string), typeof(BaseShellItem), null, BindingMode.TwoWay, propertyChanged: OnTitlePropertyChanged);
Shell\SearchHandler.cs (1)
400 BindableProperty.Create(nameof(Query), typeof(string), typeof(SearchHandler), null, BindingMode.TwoWay,
Shell\Shell.cs (2)
1060 BindableProperty.Create(nameof(CurrentItem), typeof(ShellItem), typeof(Shell), null, BindingMode.TwoWay, 1130 BindableProperty.Create(nameof(FlyoutIsPresented), typeof(bool), typeof(Shell), false, BindingMode.TwoWay);
Shell\ShellItem.cs (1)
142 BindableProperty.Create(nameof(CurrentItem), typeof(ShellSection), typeof(ShellItem), null, BindingMode.TwoWay,
Shell\ShellSection.cs (1)
205 BindableProperty.Create(nameof(CurrentItem), typeof(ShellContent), typeof(ShellSection), null, BindingMode.TwoWay,
Slider\Slider.cs (1)
28 public static readonly BindableProperty ValueProperty = BindableProperty.Create(nameof(Value), typeof(double), typeof(Slider), 0d, BindingMode.TwoWay, coerceValue: (bindable, value) =>
Stepper\Stepper.cs (1)
32 public static readonly BindableProperty ValueProperty = BindableProperty.Create(nameof(Value), typeof(double), typeof(Stepper), 0.0, BindingMode.TwoWay,
Switch\Switch.cs (1)
23 }, defaultBindingMode: BindingMode.TwoWay);
TimePicker\TimePicker.cs (1)
21 public static readonly BindableProperty TimeProperty = BindableProperty.Create(nameof(Time), typeof(TimeSpan), typeof(TimePicker), new TimeSpan(0), BindingMode.TwoWay,
TypedBinding.cs (3)
300 var needsGetter = (mode == BindingMode.TwoWay && !fromTarget) || mode == BindingMode.OneWay || mode == BindingMode.OneTime; 302 if (isTSource && (mode == BindingMode.OneWay || mode == BindingMode.TwoWay) && _handlers != null) 329 var needsSetter = (mode == BindingMode.TwoWay && fromTarget) || mode == BindingMode.OneWayToSource;
Microsoft.Maui.Controls.Build.Tasks (1)
SetPropertiesVisitor.cs (1)
439 declaredmode = BindingMode.TwoWay; //meaning the mode isn't specified in the Binding extension. generate getters, setters, handlers