79 references to FlyoutPage
Microsoft.Maui.Controls (79)
Compatibility\Handlers\FlyoutPage\iOS\PhoneFlyoutPageRenderer.cs (28)
61
public static IPropertyMapper<
FlyoutPage
, PhoneFlyoutPageRenderer> Mapper = new PropertyMapper<
FlyoutPage
, PhoneFlyoutPageRenderer>(ViewHandler.ViewMapper);
62
public static CommandMapper<
FlyoutPage
, PhoneFlyoutPageRenderer> CommandMapper = new CommandMapper<
FlyoutPage
, PhoneFlyoutPageRenderer>(ViewHandler.ViewCommandMapper);
63
ViewHandlerDelegator<
FlyoutPage
> _viewHandlerWrapper;
68
_viewHandlerWrapper = new ViewHandlerDelegator<
FlyoutPage
>(Mapper, CommandMapper, this);
71
FlyoutPage
FlyoutPage => Element as
FlyoutPage
;
95
var
flyoutPage = element as
FlyoutPage
;
156
UpdatePresented(((
FlyoutPage
)Element).IsPresented);
178
((
FlyoutPage
)Element).PropertyChanged += HandlePropertyChanged;
201
UpdateApplyShadow(((
FlyoutPage
)Element).OnThisPlatform().GetApplyShadow());
245
((IElementController)Element).SetValueFromRenderer(
FlyoutPage
.IsPresentedProperty, _presented);
359
else if (e.PropertyName == Microsoft.Maui.Controls.
FlyoutPage
.IsPresentedProperty.PropertyName)
360
UpdatePresented(((
FlyoutPage
)Element).IsPresented, true);
361
else if (e.PropertyName == Microsoft.Maui.Controls.
FlyoutPage
.IsGestureEnabledProperty.PropertyName)
368
UpdateApplyShadow(((
FlyoutPage
)Element).OnThisPlatform().GetApplyShadow());
532
((
FlyoutPage
)Element).Flyout.PropertyChanged -= HandleFlyoutPropertyChanged;
536
var flyoutRenderer = ((
FlyoutPage
)Element).Flyout.ToHandler(MauiContext);
537
var detailRenderer = ((
FlyoutPage
)Element).Detail.ToHandler(MauiContext);
539
((
FlyoutPage
)Element).Flyout.PropertyChanged += HandleFlyoutPropertyChanged;
564
var
FlyoutPage = Element as
FlyoutPage
;
590
if (((
FlyoutPage
)Element).Detail?.Handler is IPlatformViewHandler nvh)
600
if (((
FlyoutPage
)Element).Detail?.Handler is IPlatformViewHandler nvh)
620
var
model = (
FlyoutPage
)Element;
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (6)
33
FlyoutPage
_parentFlyoutPage;
347
if (page is
FlyoutPage
)
348
System.Diagnostics.Trace.WriteLine($"Pushing a {nameof(
FlyoutPage
)} onto a {nameof(NavigationPage)} is not a supported UI pattern on iOS. " +
402
var
flyoutDetail = parentPages.OfType<
FlyoutPage
>().FirstOrDefault();
925
internal static void SetFlyoutLeftBarButton(UIViewController containerController,
FlyoutPage
FlyoutPage)
FlyoutPage\FlyoutPage.cs (14)
14
public partial class FlyoutPage : Page, IFlyoutPageController, IElementConfiguration<
FlyoutPage
>, IFlyoutView
17
public static readonly BindableProperty IsGestureEnabledProperty = BindableProperty.Create(nameof(IsGestureEnabled), typeof(bool), typeof(
FlyoutPage
), true);
20
public static readonly BindableProperty IsPresentedProperty = BindableProperty.Create(nameof(IsPresented), typeof(bool), typeof(
FlyoutPage
), default(bool),
24
public static readonly BindableProperty FlyoutLayoutBehaviorProperty = BindableProperty.Create(nameof(FlyoutLayoutBehavior), typeof(FlyoutLayoutBehavior), typeof(
FlyoutPage
), default(FlyoutLayoutBehavior),
266
internal static void UpdateFlyoutLayoutBehavior(
FlyoutPage
page)
277
=> ((
FlyoutPage
)sender).IsPresentedChanged?.Invoke(sender, EventArgs.Empty);
283
if (sender is
FlyoutPage
fp && fp is IFlyoutPageController fpc && !fpc.CanChangeIsPresented)
288
if ((!(bool)newValue) && sender is IFlyoutPageController fpc && fpc.ShouldShowSplitMode && sender is
FlyoutPage
fp)
297
var
page = (
FlyoutPage
)sender;
309
_platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<
FlyoutPage
>>(() => new PlatformConfigurationRegistry<
FlyoutPage
>(this));
314
readonly Lazy<PlatformConfigurationRegistry<
FlyoutPage
>> _platformConfigurationRegistry;
317
public new IPlatformElementConfiguration<T,
FlyoutPage
> On<T>() where T : IConfigPlatform
Hosting\AppHostBuilderExtensions.cs (2)
142
handlersCollection.AddHandler(typeof(
FlyoutPage
), typeof(Handlers.Compatibility.PhoneFlyoutPageRenderer));
246
FlyoutPage
.RemapForControls();
Menu\MenuItemTracker.cs (8)
106
if (page is
FlyoutPage
)
108
var
flyoutDetail = (
FlyoutPage
)page;
171
propertyChangedEventArgs.PropertyName ==
FlyoutPage
.IsPresentedProperty.PropertyName ||
186
if (page is
FlyoutPage
)
204
if (page is
FlyoutPage
)
247
if (page is
FlyoutPage
)
260
if (page is
FlyoutPage
)
NavigationPage\NavigationPage.cs (4)
555
var
flyoutPage = _toolbar.FindParentOfType<
FlyoutPage
>();
572
var
flyoutPage = this.FindParentOfType<
FlyoutPage
>();
NavigationPage\NavigationPageToolbar.cs (1)
171
if (Parent is
FlyoutPage
flyout && flyout.ShouldShowToolbarButton() && !anyPagesPushed.Value)
Page\Page.cs (1)
19
/// <remarks><see cref = "Page" /> is primarily a base class for more useful derived types. Objects that are derived from the <see cref="Page"/> class are most prominently used as the top level UI element in .NET MAUI applications. In addition to their role as the main pages of applications, <see cref="Page"/> objects and their descendants can be used with navigation classes, such as <see cref="NavigationPage"/> or <see cref="
FlyoutPage
"/>, among others, to provide rich user experiences that conform to the expected behaviors on each platform.
Platform\PageExtensions.cs (1)
13
else if (currentPage is
FlyoutPage
fp)
PlatformConfiguration\iOSSpecific\FlyoutPage.cs (4)
5
using FormsElement = Maui.Controls.
FlyoutPage
;
27
public static IPlatformElementConfiguration<iOS,
FormsElement
> SetApplyShadow(this IPlatformElementConfiguration<iOS,
FormsElement
> config, bool value)
34
public static bool GetApplyShadow(this IPlatformElementConfiguration<iOS,
FormsElement
> config)
PlatformConfiguration\WindowsSpecific\FlyoutPage.cs (9)
6
using FormsElement = Maui.Controls.
FlyoutPage
;
31
public static CollapseStyle GetCollapseStyle(this IPlatformElementConfiguration<Windows,
FormsElement
> config)
37
public static IPlatformElementConfiguration<Windows,
FormsElement
> SetCollapseStyle(
38
this IPlatformElementConfiguration<Windows,
FormsElement
> config, CollapseStyle value)
45
public static IPlatformElementConfiguration<Windows,
FormsElement
> UsePartialCollapse(
46
this IPlatformElementConfiguration<Windows,
FormsElement
> config)
74
public static double CollapsedPaneWidth(this IPlatformElementConfiguration<Windows,
FormsElement
> config)
80
public static IPlatformElementConfiguration<Windows,
FormsElement
> CollapsedPaneWidth(
81
this IPlatformElementConfiguration<Windows,
FormsElement
> config, double value)
Shell\ShellContent.cs (1)
101
if (result is
FlyoutPage
)