Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit bcd8339

Browse files
committed
fixed comments
1 parent 99a3e2a commit bcd8339

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

samples/src/PopupPluginSample/Views/FLPRoot.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace PopupPluginSample.Views
55
{
6-
public partial class FLPRoot : FlyoutPage, IMasterDetailPageOptions
6+
public partial class FLPRoot : FlyoutPage, IFlyoutPageOptions
77
{
88
public FLPRoot()
99
{

src/Prism.Plugin.Popups/Extensions/PageExtensions.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,12 @@ public static bool IsOrDerivesFrom<T>(this Page page) where T : Page =>
2525
/// <returns>The displayed page.</returns>
2626
public static Page GetDisplayedPage(this Page page)
2727
{
28-
while (page.IsOrDerivesFrom<MasterDetailPage>() ||
29-
page.IsOrDerivesFrom<FlyoutPage>() ||
28+
while (page.IsOrDerivesFrom<FlyoutPage>() ||
3029
page.IsOrDerivesFrom<TabbedPage>() ||
3130
page.IsOrDerivesFrom<NavigationPage>())
3231
{
3332
switch (page)
3433
{
35-
case MasterDetailPage mdp:
36-
page = mdp.Detail;
37-
break;
3834
case FlyoutPage flp:
3935
page = flp.Detail;
4036
break;

0 commit comments

Comments
 (0)