94 references to FlyoutPage
Microsoft.Maui.Controls (44)
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 (1)
252
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)
20
/// <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
)
Microsoft.Maui.Controls.Compatibility (50)
iOS\Renderers\NavigationRenderer.cs (6)
31
FlyoutPage
_parentFlyoutPage;
357
if (page is
FlyoutPage
)
358
System.Diagnostics.Trace.WriteLine($"Pushing a {nameof(
FlyoutPage
)} onto a {nameof(NavigationPage)} is not a supported UI pattern on iOS. " +
412
var
flyoutDetail = parentPages.OfType<
FlyoutPage
>().FirstOrDefault();
824
internal static async void SetFlyoutLeftBarButton(UIViewController containerController,
FlyoutPage
FlyoutPage)
iOS\Renderers\PhoneFlyoutPageRenderer.cs (28)
42
FlyoutPage
FlyoutPage => Element as
FlyoutPage
;
61
((IElementController)Element).SetValueFromRenderer(Microsoft.Maui.Controls.
FlyoutPage
.IsPresentedProperty, value);
91
Presented = ((
FlyoutPage
)Element).IsPresented;
141
((
FlyoutPage
)Element).PropertyChanged += HandlePropertyChanged;
156
UpdateApplyShadow(((
FlyoutPage
)Element).OnThisPlatform().GetApplyShadow());
247
else if (e.PropertyName == Microsoft.Maui.Controls.
FlyoutPage
.IsPresentedProperty.PropertyName)
248
Presented = ((
FlyoutPage
)Element).IsPresented;
249
else if (e.PropertyName == Microsoft.Maui.Controls.
FlyoutPage
.IsGestureEnabledProperty.PropertyName)
256
UpdateApplyShadow(((
FlyoutPage
)Element).OnThisPlatform().GetApplyShadow());
361
((
FlyoutPage
)Element).Flyout.PropertyChanged -= HandleFlyoutPropertyChanged;
365
if (Platform.GetRenderer(((
FlyoutPage
)Element).Flyout) == null)
366
Platform.SetRenderer(((
FlyoutPage
)Element).Flyout, Platform.CreateRenderer(((
FlyoutPage
)Element).Flyout));
367
if (Platform.GetRenderer(((
FlyoutPage
)Element).Detail) == null)
368
Platform.SetRenderer(((
FlyoutPage
)Element).Detail, Platform.CreateRenderer(((
FlyoutPage
)Element).Detail));
370
var flyoutRenderer = Platform.GetRenderer(((
FlyoutPage
)Element).Flyout);
371
var detailRenderer = Platform.GetRenderer(((
FlyoutPage
)Element).Detail);
373
((
FlyoutPage
)Element).Flyout.PropertyChanged += HandleFlyoutPropertyChanged;
397
var
FlyoutPage = Element as
FlyoutPage
;
417
if (((
FlyoutPage
)Element).Detail != null)
418
return Platform.GetRenderer(((
FlyoutPage
)Element).Detail).ViewController;
427
if (((
FlyoutPage
)Element).Detail != null)
428
return Platform.GetRenderer(((
FlyoutPage
)Element).Detail).ViewController;
447
var
model = (
FlyoutPage
)Element;
iOS\Renderers\TabletFlyoutPageRenderer.cs (16)
129
FlyoutPage
_flyoutPage;
139
protected
FlyoutPage
FlyoutPage => _flyoutPage ?? (_flyoutPage = (
FlyoutPage
)Element);
306
ElementController.SetValueFromRenderer(Microsoft.Maui.Controls.
FlyoutPage
.IsPresentedProperty, IsFlyoutVisible);
315
ElementController.SetValueFromRenderer(Microsoft.Maui.Controls.
FlyoutPage
.IsPresentedProperty, IsFlyoutVisible);
331
FlyoutPage
flyoutDetailPage = _flyoutPage ?? Element as
FlyoutPage
;
385
if (((
FlyoutPage
)Element).Detail != null)
386
return (UIViewController)Platform.GetRenderer(((
FlyoutPage
)Element).Detail);
395
if (((
FlyoutPage
)Element).Detail != null)
396
return (UIViewController)Platform.GetRenderer(((
FlyoutPage
)Element).Detail);
449
else if (e.PropertyName == Microsoft.Maui.Controls.
FlyoutPage
.IsPresentedProperty.PropertyName)
451
else if (e.PropertyName == Microsoft.Maui.Controls.
FlyoutPage
.IsGestureEnabledProperty.PropertyName)
457
else if (e.Is(Microsoft.Maui.Controls.
FlyoutPage
.FlyoutLayoutBehaviorProperty))
479
ElementController.SetValueFromRenderer(Microsoft.Maui.Controls.
FlyoutPage
.IsPresentedProperty, true);
485
ElementController.SetValueFromRenderer(Microsoft.Maui.Controls.
FlyoutPage
.IsPresentedProperty, false);