49 references to OneTime
Microsoft.Maui.Controls (47)
BindableProperty.cs (1)
89
if (defaultBindingMode != BindingMode.Default && defaultBindingMode != BindingMode.OneWay && defaultBindingMode != BindingMode.OneWayToSource && defaultBindingMode != BindingMode.TwoWay && defaultBindingMode != BindingMode.
OneTime
)
BindingBase.cs (1)
34
&& value != BindingMode.
OneTime
)
BindingExpression.cs (2)
124
if ((mode == BindingMode.OneWay || mode == BindingMode.
OneTime
) && fromTarget)
127
bool needsGetter = (mode == BindingMode.TwoWay && !fromTarget) || mode == BindingMode.OneWay || mode == BindingMode.
OneTime
;
Items\CarouselView.cs (1)
27
public static readonly BindableProperty LoopProperty = BindableProperty.Create(nameof(Loop), typeof(bool), typeof(CarouselView), true, BindingMode.
OneTime
);
MultiBinding.cs (1)
88
if (this.GetRealizedMode(_targetProperty) == BindingMode.
OneTime
)
Shell\BackButtonBehavior.cs (4)
12
BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(BackButtonBehavior), null, BindingMode.
OneTime
,
17
BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(BackButtonBehavior), null, BindingMode.
OneTime
,
22
BindableProperty.Create(nameof(IconOverride), typeof(ImageSource), typeof(BackButtonBehavior), null, BindingMode.
OneTime
);
34
BindableProperty.Create(nameof(TextOverride), typeof(string), typeof(BackButtonBehavior), null, BindingMode.
OneTime
);
Shell\BaseShellItem.cs (1)
37
BindableProperty.Create(nameof(FlyoutIcon), typeof(ImageSource), typeof(BaseShellItem), null, BindingMode.
OneTime
);
Shell\SearchHandler.cs (15)
313
BindableProperty.Create(nameof(ClearIconHelpText), typeof(string), typeof(SearchHandler), null, BindingMode.
OneTime
,
318
BindableProperty.Create(nameof(ClearIconName), typeof(string), typeof(SearchHandler), null, BindingMode.
OneTime
,
323
BindableProperty.Create(nameof(ClearIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.
OneTime
);
332
BindableProperty.Create(nameof(ClearPlaceholderCommand), typeof(ICommand), typeof(SearchHandler), null, BindingMode.
OneTime
,
341
BindableProperty.Create(nameof(ClearPlaceholderHelpText), typeof(string), typeof(SearchHandler), null, BindingMode.
OneTime
,
346
BindableProperty.Create(nameof(ClearPlaceholderIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.
OneTime
,
351
BindableProperty.Create(nameof(ClearPlaceholderName), typeof(string), typeof(SearchHandler), null, BindingMode.
OneTime
,
361
BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(SearchHandler), null, BindingMode.
OneTime
,
367
BindableProperty.Create(nameof(DisplayMemberName), typeof(string), typeof(SearchHandler), null, BindingMode.
OneTime
);
376
BindableProperty.Create(nameof(ItemsSource), typeof(IEnumerable), typeof(SearchHandler), null, BindingMode.
OneTime
,
381
BindableProperty.Create(nameof(ItemTemplate), typeof(DataTemplate), typeof(SearchHandler), null, BindingMode.
OneTime
);
385
BindableProperty.Create(nameof(QueryIconHelpText), typeof(string), typeof(SearchHandler), null, BindingMode.
OneTime
,
390
BindableProperty.Create(nameof(QueryIconName), typeof(string), typeof(SearchHandler), null, BindingMode.
OneTime
,
395
BindableProperty.Create(nameof(QueryIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.
OneTime
,
415
BindableProperty.Create(nameof(ShowsResults), typeof(bool), typeof(SearchHandler), false, BindingMode.
OneTime
);
Shell\Shell.cs (15)
35
BindableProperty.CreateAttached("BackButtonBehavior", typeof(BackButtonBehavior), typeof(Shell), null, BindingMode.
OneTime
,
91
BindableProperty.CreateAttached("SearchHandler", typeof(SearchHandler), typeof(Shell), null, BindingMode.
OneTime
,
148
BindableProperty.CreateAttached(nameof(MenuItemTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.
OneTime
);
172
BindableProperty.CreateAttached(nameof(ItemTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.
OneTime
);
1074
BindableProperty.Create(nameof(FlyoutBackgroundImage), typeof(ImageSource), typeof(Shell), default(ImageSource), BindingMode.
OneTime
);
1080
BindableProperty.Create(nameof(FlyoutBackgroundImageAspect), typeof(Aspect), typeof(Shell), default(Aspect), BindingMode.
OneTime
);
1086
BindableProperty.Create(nameof(FlyoutBackgroundColor), typeof(Color), typeof(Shell), null, BindingMode.
OneTime
);
1090
BindableProperty.Create(nameof(FlyoutBackground), typeof(Brush), typeof(Shell), SolidColorBrush.Default, BindingMode.
OneTime
);
1094
BindableProperty.Create(nameof(FlyoutHeaderBehavior), typeof(FlyoutHeaderBehavior), typeof(Shell), FlyoutHeaderBehavior.Default, BindingMode.
OneTime
);
1101
BindableProperty.Create(nameof(FlyoutHeader), typeof(object), typeof(Shell), null, BindingMode.
OneTime
,
1109
BindableProperty.Create(nameof(FlyoutFooter), typeof(object), typeof(Shell), null, BindingMode.
OneTime
,
1116
BindableProperty.Create(nameof(FlyoutHeaderTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.
OneTime
,
1123
BindableProperty.Create(nameof(FlyoutFooterTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.
OneTime
,
2014
BindableProperty.Create(nameof(FlyoutContent), typeof(object), typeof(Shell), null, BindingMode.
OneTime
, propertyChanging: OnFlyoutContentChanging);
2021
BindableProperty.Create(nameof(FlyoutContentTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.
OneTime
, propertyChanging: OnFlyoutContentTemplateChanging);
Shell\ShellContent.cs (2)
26
BindableProperty.Create(nameof(Content), typeof(object), typeof(ShellContent), null, BindingMode.
OneTime
, propertyChanged: OnContentChanged);
30
BindableProperty.Create(nameof(ContentTemplate), typeof(DataTemplate), typeof(ShellContent), null, BindingMode.
OneTime
);
Shell\ShellGroupItem.cs (1)
11
BindableProperty.Create(nameof(FlyoutDisplayOptions), typeof(FlyoutDisplayOptions), typeof(ShellGroupItem), FlyoutDisplayOptions.AsSingleItem, BindingMode.
OneTime
, propertyChanged: OnFlyoutDisplayOptionsPropertyChanged);
Shell\ShellItem.cs (1)
228
result.SetBinding(FlyoutDisplayOptionsProperty, static (ShellSection section) => section.FlyoutDisplayOptions, BindingMode.
OneTime
, source: shellSection);
TypedBinding.cs (2)
297
if ((mode == BindingMode.OneWay || mode == BindingMode.
OneTime
) && fromTarget)
300
var needsGetter = (mode == BindingMode.TwoWay && !fromTarget) || mode == BindingMode.OneWay || mode == BindingMode.
OneTime
;
Microsoft.Maui.Controls.Build.Tasks (2)
SetPropertiesVisitor.cs (2)
556
if (declaredmode != BindingMode.
OneTime
&& declaredmode != BindingMode.OneWay)
563
if (declaredmode != BindingMode.
OneTime
)