Skip to content

Commit 043e961

Browse files
OnPageBusy changes
1 parent ec5c3d2 commit 043e961

5 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/Controls/src/Core/Platform/AlertManager/AlertManager.Android.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ internal AlertRequestHelper(Activity context, IMauiContext mauiContext)
4444

4545
public IMauiContext MauiContext { get; }
4646

47+
// TODO: This method is obsolete in .NET 10 and will be removed in .NET11.
4748
public partial void OnPageBusy(Page sender, bool enabled)
4849
{
4950
// Verify that the page making the request is part of this activity

src/Controls/src/Core/Platform/AlertManager/AlertManager.Standard.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public partial void OnAlertRequested(Page sender, AlertArguments arguments) { }
1818

1919
public partial void OnPromptRequested(Page sender, PromptArguments arguments) { }
2020

21+
// TODO: This method is obsolete in .NET 10 and will be removed in .NET 11.
2122
public partial void OnPageBusy(Page sender, bool enabled) { }
2223
}
2324
}

src/Controls/src/Core/Platform/AlertManager/AlertManager.Windows.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ internal AlertRequestHelper(Window virtualView, UI.Xaml.Window platformView)
3232

3333
public UI.Xaml.Window PlatformView { get; }
3434

35+
// TODO: This method is obsolete in .NET 10 and will be removed in .NET11.
3536
public partial void OnPageBusy(Page sender, bool enabled)
3637
{
3738
// TODO: Wrap the pages in a Canvas, and dynamically add a ProgressBar

src/Controls/src/Core/Platform/AlertManager/AlertManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ internal interface IAlertManagerSubscription
7373

7474
void OnPromptRequested(Page sender, PromptArguments arguments);
7575

76+
[Obsolete("This method is obsolete in .NET 10 and will be removed in .NET11.")]
7677
void OnPageBusy(Page sender, bool enabled);
7778
}
7879

@@ -84,6 +85,7 @@ internal partial class AlertRequestHelper : IAlertManagerSubscription
8485

8586
public partial void OnPromptRequested(Page sender, PromptArguments arguments);
8687

88+
[Obsolete("This method is obsolete in .NET 10 and will be removed in .NET11.")]
8789
public partial void OnPageBusy(Page sender, bool enabled);
8890
}
8991
}

src/Controls/src/Core/Platform/AlertManager/AlertManager.iOS.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ internal AlertRequestHelper(Window virtualView, UIWindow platformView)
3535

3636
public UIWindow PlatformView { get; }
3737

38+
// TODO: This method is obsolete in .NET 10 and will be removed in .NET 11.
3839
public partial void OnPageBusy(Page sender, bool enabled)
3940
{
4041
_busyCount = Math.Max(0, enabled ? _busyCount + 1 : _busyCount - 1);

0 commit comments

Comments
 (0)