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)
35 BindableProperty.CreateAttached("BackButtonBehavior", typeof(BackButtonBehavior), typeof(Shell), null, BindingMode.OneTime, 40 if (oldValue is BackButtonBehavior oldHandlerProperties) 42 if (newValue is BackButtonBehavior newHandlerProperties) 189 public static BackButtonBehavior GetBackButtonBehavior(BindableObject obj) => (BackButtonBehavior)obj.GetValue(BackButtonBehaviorProperty); 199 public static void SetBackButtonBehavior(BindableObject obj, BackButtonBehavior behavior) => obj.SetValue(BackButtonBehaviorProperty, behavior); 1518 var backButtonBehavior = GetBackButtonBehavior(GetVisiblePage()); 1521 var command = backButtonBehavior.GetPropertyIfSet<ICommand>(BackButtonBehavior.CommandProperty, null); 1522 var commandParameter = backButtonBehavior.GetPropertyIfSet<object>(BackButtonBehavior.CommandParameterProperty, null);
ShellToolbar.cs (2)
15 BackButtonBehavior? _backButtonBehavior; 130 var bbb = Shell.GetBackButtonBehavior(_currentPage);