38 references to Element
Microsoft.Maui.Controls (38)
Compatibility\Handlers\FlyoutPage\iOS\PhoneFlyoutPageRenderer.cs (38)
35
Page Page =>
Element
as Page;
59
bool IsRTL => (
Element
as IVisualElementController)?.EffectiveFlowDirection.IsRightToLeft() == true;
71
FlyoutPage FlyoutPage =>
Element
as FlyoutPage;
110
Element
.SizeChanged += PageOnSizeChanged;
115
Element
.Layout(new Rect(
Element
.X,
Element
.Y, size.Width, size.Height));
139
if (
Element
is IView view &&
143
view.Arrange(new Rect(
Element
.X,
Element
.Y, View.Bounds.Width, View.Bounds.Height));
156
UpdatePresented(((FlyoutPage)
Element
).IsPresented);
178
((FlyoutPage)
Element
).PropertyChanged += HandlePropertyChanged;
201
UpdateApplyShadow(((FlyoutPage)
Element
).OnThisPlatform().GetApplyShadow());
245
((IElementController)
Element
).SetValueFromRenderer(FlyoutPage.IsPresentedProperty, _presented);
252
Element
.SizeChanged -= PageOnSizeChanged;
253
Element
.PropertyChanged -= HandlePropertyChanged;
360
UpdatePresented(((FlyoutPage)
Element
).IsPresented, true);
368
UpdateApplyShadow(((FlyoutPage)
Element
).OnThisPlatform().GetApplyShadow());
376
var frame =
Element
.Bounds.ToCGRect();
508
((Page)(
Element
)).BackgroundImageSource.LoadImage(MauiContext, result =>
515
Brush background =
Element
.Background;
518
View.UpdateBackground(
Element
.Background);
521
if (
Element
.BackgroundColor == null)
524
View.BackgroundColor =
Element
.BackgroundColor.ToPlatform();
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
;
690
targetFrame.X = (float)
Element
.Bounds.Width - (flyoutWidth + targetFrame.X);
727
flyoutOffsetX = (float)
Element
.Bounds.Width - flyoutFrame.X;
766
: ((float)
Element
.Bounds.Width - targetFrame.Right) / flyoutWidth;
772
: ((float)
Element
.Bounds.Width - targetFrame.X) / flyoutWidth;
811
IView IViewHandler.VirtualView =>
Element
;
815
Maui.IElement IElementHandler.VirtualView =>
Element
;