From 739c843b8d5407739797806837ec63fe2b0910ca Mon Sep 17 00:00:00 2001 From: Shaun Lawrence Date: Mon, 26 Feb 2024 12:44:12 +0000 Subject: [PATCH] Remove the old code to set the status bar behavior values (#1713) Co-authored-by: Shaun Lawrence <17139988+bijington@users.noreply.github.com> Co-authored-by: Gerald Versluis --- .../Pages/Behaviors/StatusBarBehaviorPage.xaml.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/StatusBarBehaviorPage.xaml.cs b/samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/StatusBarBehaviorPage.xaml.cs index e061b1e92d..5fe56245e0 100644 --- a/samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/StatusBarBehaviorPage.xaml.cs +++ b/samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/StatusBarBehaviorPage.xaml.cs @@ -9,12 +9,4 @@ public StatusBarBehaviorPage(StatusBarBehaviorViewModel viewModel) { InitializeComponent(); } - - protected override void OnNavigatedTo(NavigatedToEventArgs args) - { - base.OnNavigatedTo(args); - - var statusBarColor = Color.FromRgb(BindingContext.RedSliderValue, BindingContext.GreenSliderValue, BindingContext.BlueSliderValue); - CommunityToolkit.Maui.Core.Platform.StatusBar.SetColor(statusBarColor); - } } \ No newline at end of file