11 references to OneWayToSource
Microsoft.Maui.Controls (11)
BindableProperty.cs (3)
89
if (defaultBindingMode != BindingMode.Default && defaultBindingMode != BindingMode.OneWay && defaultBindingMode != BindingMode.
OneWayToSource
&& defaultBindingMode != BindingMode.TwoWay && defaultBindingMode != BindingMode.OneTime)
165
public static BindablePropertyKey CreateAttachedReadOnly(string propertyName, [DynamicallyAccessedMembers(ReturnTypeMembers)] Type returnType, [DynamicallyAccessedMembers(DeclaringTypeMembers)] Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.
OneWayToSource
,
175
public static BindablePropertyKey CreateReadOnly(string propertyName, [DynamicallyAccessedMembers(ReturnTypeMembers)] Type returnType, [DynamicallyAccessedMembers(DeclaringTypeMembers)] Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.
OneWayToSource
,
BindingBase.cs (1)
32
&& value != BindingMode.
OneWayToSource
BindingBaseExtensions.cs (1)
14
return BindingMode.
OneWayToSource
;
BindingExpression.cs (1)
128
bool needsSetter = !needsGetter && ((mode == BindingMode.TwoWay && fromTarget) || mode == BindingMode.
OneWayToSource
);
ListView\ListView.cs (1)
51
public static readonly BindableProperty SelectedItemProperty = BindableProperty.Create(nameof(SelectedItem), typeof(object), typeof(ListView), null, BindingMode.
OneWayToSource
,
MultiBinding.cs (2)
94
if (!fromTarget && this.GetRealizedMode(_targetProperty) == BindingMode.
OneWayToSource
)
169
if (this.GetRealizedMode(_targetProperty) == BindingMode.
OneWayToSource
)
Shell\SearchHandler.cs (1)
408
BindableProperty.CreateReadOnly(nameof(SelectedItem), typeof(object), typeof(SearchHandler), null, BindingMode.
OneWayToSource
);
TypedBinding.cs (1)
329
var needsSetter = (mode == BindingMode.TwoWay && fromTarget) || mode == BindingMode.
OneWayToSource
;