21 references to BackButtonBehavior
Microsoft.Maui.Controls (21)
BindableObject.cs (1)
396 if (Shell.GetBackButtonBehavior(this) is BackButtonBehavior buttonBehavior)
Shell\BackButtonBehavior.cs (9)
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); 26 BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(BackButtonBehavior), true, BindingMode.OneWay); 30 BindableProperty.Create(nameof(IsVisible), typeof(bool), typeof(BackButtonBehavior), true, BindingMode.OneWay); 34 BindableProperty.Create(nameof(TextOverride), typeof(string), typeof(BackButtonBehavior), null, BindingMode.OneTime); 81 var self = (BackButtonBehavior)bindable; 89 ((BackButtonBehavior)bindable).OnCommandParameterChanged();
Shell\Shell.cs (9)
37 BindableProperty.CreateAttached("BackButtonBehavior", typeof(BackButtonBehavior), typeof(Shell), null, BindingMode.OneTime, 42 if (oldValue is BackButtonBehavior oldHandlerProperties) 44 if (newValue is BackButtonBehavior newHandlerProperties) 191 public static BackButtonBehavior GetBackButtonBehavior(BindableObject obj) => (BackButtonBehavior)obj.GetValue(BackButtonBehaviorProperty); 201 public static void SetBackButtonBehavior(BindableObject obj, BackButtonBehavior behavior) => obj.SetValue(BackButtonBehaviorProperty, behavior); 1520 var backButtonBehavior = GetBackButtonBehavior(GetVisiblePage()); 1523 var command = backButtonBehavior.GetPropertyIfSet<ICommand>(BackButtonBehavior.CommandProperty, null); 1524 var commandParameter = backButtonBehavior.GetPropertyIfSet<object>(BackButtonBehavior.CommandParameterProperty, null);
ShellToolbar.cs (2)
15 BackButtonBehavior? _backButtonBehavior; 130 var bbb = Shell.GetBackButtonBehavior(_currentPage);