49 references to OneWay
Microsoft.Maui.Controls (48)
BindableObject.cs (2)
49
BindingMode.
OneWay
, null, BindingContextPropertyChanged, null, null, BindingContextPropertyBindingChanging);
296
if (targetProperty.IsReadOnly && binding.Mode == BindingMode.
OneWay
)
BindableProperty.cs (5)
77
BindableProperty(string propertyName, [DynamicallyAccessedMembers(ReturnTypeMembers)] Type returnType, [DynamicallyAccessedMembers(DeclaringTypeMembers)] Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.
OneWay
,
89
if (defaultBindingMode != BindingMode.Default && defaultBindingMode != BindingMode.
OneWay
&& defaultBindingMode != BindingMode.OneWayToSource && defaultBindingMode != BindingMode.TwoWay && defaultBindingMode != BindingMode.OneTime)
99
defaultBindingMode = BindingMode.
OneWay
;
148
public static BindableProperty Create(string propertyName, [DynamicallyAccessedMembers(ReturnTypeMembers)] Type returnType, [DynamicallyAccessedMembers(DeclaringTypeMembers)] Type declaringType, object defaultValue = null, BindingMode defaultBindingMode = BindingMode.
OneWay
,
157
public static BindableProperty CreateAttached(string propertyName, [DynamicallyAccessedMembers(ReturnTypeMembers)] Type returnType, [DynamicallyAccessedMembers(DeclaringTypeMembers)] Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.
OneWay
,
BindingBase.cs (1)
31
&& value != BindingMode.
OneWay
BindingExpression.cs (3)
124
if ((mode == BindingMode.
OneWay
|| mode == BindingMode.OneTime) && fromTarget)
127
bool needsGetter = (mode == BindingMode.TwoWay && !fromTarget) || mode == BindingMode.
OneWay
|| mode == BindingMode.OneTime;
157
if (part.NextPart != null && (mode == BindingMode.
OneWay
|| mode == BindingMode.TwoWay)
Items\SelectableItemsView.cs (1)
25
defaultBindingMode: BindingMode.
OneWay
,
ListView\ListView.cs (1)
417
textCell.SetBinding(TextCell.TextProperty, static (object cell) => cell, BindingMode.
OneWay
, _toStringValueConverter);
MultiBinding.cs (1)
91
if (fromTarget && this.GetRealizedMode(_targetProperty) == BindingMode.
OneWay
)
PlatformBindingHelpers.cs (2)
48
if (binding != null && binding.Mode != BindingMode.
OneWay
&& propertyChanged != null)
58
if (binding != null && binding.Mode != BindingMode.
OneWay
)
RadioButton\RadioButton.cs (2)
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);
Shell\BackButtonBehavior.cs (2)
26
BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(BackButtonBehavior), true, BindingMode.
OneWay
);
30
BindableProperty.Create(nameof(IsVisible), typeof(bool), typeof(BackButtonBehavior), true, BindingMode.
OneWay
);
Shell\BaseShellItem.cs (2)
41
BindableProperty.Create(nameof(Icon), typeof(ImageSource), typeof(BaseShellItem), null, BindingMode.
OneWay
,
49
BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(BaseShellItem), true, BindingMode.
OneWay
);
Shell\MenuShellItem.cs (4)
18
this.SetBinding(TitleProperty, static (MenuItem item) => item.Text, BindingMode.
OneWay
, source: menuItem);
19
this.SetBinding(IconProperty, static (MenuItem item) => item.IconImageSource, BindingMode.
OneWay
, source: menuItem);
20
this.SetBinding(FlyoutIconProperty, static (MenuItem item) => item.IconImageSource, BindingMode.
OneWay
, source: menuItem);
21
this.SetBinding(AutomationIdProperty, static (MenuItem item) => item.AutomationId, BindingMode.
OneWay
, source: menuItem);
Shell\SearchHandler.cs (2)
372
BindableProperty.Create(nameof(IsSearchEnabled), typeof(bool), typeof(SearchHandler), true, BindingMode.
OneWay
);
405
BindableProperty.Create(nameof(SearchBoxVisibility), typeof(SearchBoxVisibility), typeof(SearchHandler), SearchBoxVisibility.Expanded, BindingMode.
OneWay
);
Shell\Shell.cs (1)
1172
new AppThemeBinding { Light = Colors.White, Dark = Colors.Black, Mode = BindingMode.
OneWay
});
Shell\ShellContent.cs (3)
291
shellContent.SetBinding(TitleProperty, static (TemplatedPage page) => page.Title, BindingMode.
OneWay
, source: page);
292
shellContent.SetBinding(IconProperty, static (TemplatedPage page) => page.IconImageSource, BindingMode.
OneWay
, source: page);
293
shellContent.SetBinding(FlyoutIconProperty, static (TemplatedPage page) => page.IconImageSource, BindingMode.
OneWay
, source: page);
Shell\ShellItem.cs (3)
226
result.SetBinding(TitleProperty, static (ShellSection section) => section.Title, BindingMode.
OneWay
, source: shellSection);
227
result.SetBinding(IconProperty, static (ShellSection section) => section.Icon, BindingMode.
OneWay
, source: shellSection);
229
result.SetBinding(FlyoutIconProperty, static (ShellSection section) => section.FlyoutIcon, BindingMode.
OneWay
, source: shellSection);
Shell\ShellSection.cs (3)
296
shellSection.SetBinding(TitleProperty, static (BaseShellItem item) => item.Title, BindingMode.
OneWay
, source: shellContent);
297
shellSection.SetBinding(IconProperty, static (BaseShellItem item) => item.Icon, BindingMode.
OneWay
, source: shellContent);
298
shellSection.SetBinding(FlyoutIconProperty, static (BaseShellItem item) => item.FlyoutIcon, BindingMode.
OneWay
, source: shellContent);
Span.cs (3)
22
propertyChanged: (bindable, oldvalue, newvalue) => ((Span)bindable)._mergedStyle.Style = (Style)newvalue, defaultBindingMode: BindingMode.
OneWay
);
39
= BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(Span), default(Color), defaultBindingMode: BindingMode.
OneWay
);
81
= BindableProperty.Create(nameof(Text), typeof(string), typeof(Span), "", defaultBindingMode: BindingMode.
OneWay
);
SwipeView\SwipeView.cs (4)
40
BindableProperty.Create(nameof(LeftItems), typeof(SwipeItems), typeof(SwipeView), null, BindingMode.
OneWay
, null, defaultValueCreator: SwipeItemsDefaultValueCreator,
45
BindableProperty.Create(nameof(RightItems), typeof(SwipeItems), typeof(SwipeView), null, BindingMode.
OneWay
, null, defaultValueCreator: SwipeItemsDefaultValueCreator,
50
BindableProperty.Create(nameof(TopItems), typeof(SwipeItems), typeof(SwipeView), null, BindingMode.
OneWay
, null, defaultValueCreator: SwipeItemsDefaultValueCreator,
55
BindableProperty.Create(nameof(BottomItems), typeof(SwipeItems), typeof(SwipeView), null, BindingMode.
OneWay
, null, defaultValueCreator: SwipeItemsDefaultValueCreator,
TypedBinding.cs (3)
297
if ((mode == BindingMode.
OneWay
|| mode == BindingMode.OneTime) && fromTarget)
300
var needsGetter = (mode == BindingMode.TwoWay && !fromTarget) || mode == BindingMode.
OneWay
|| mode == BindingMode.OneTime;
302
if (isTSource && (mode == BindingMode.
OneWay
|| mode == BindingMode.TwoWay) && _handlers != null)
Microsoft.Maui.Controls.Build.Tasks (1)
SetPropertiesVisitor.cs (1)
556
if (declaredmode != BindingMode.OneTime && declaredmode != BindingMode.
OneWay
)