protected virtual void OnBackgroundLayoutUpdated(object sender, Native.LayoutEventArgs e) { if (_backgroundCanvas.IsValueCreated) { BackgroundCanvas.Geometry = Control.Geometry; } }
void OnContentLayoutUpdated(object sender, Native.LayoutEventArgs e) { // It is workaround, // in some case, before set a size of ScrollView, if content of content was filled with sized items, // after size of ScrollView was updated, a content position was moved to somewhere. if (Element.Content != null) { Platform.GetRenderer(Element.Content)?.NativeView?.Move(e.Geometry.X, e.Geometry.Y); } UpdateContentSize(); }
void OnLayoutUpdated(object sender, Native.LayoutEventArgs e) { Element.Layout(e.Geometry.ToDP()); if (_moreOption != null && _moreOption.IsValueCreated) { _moreOption.Value.Geometry = _page.Geometry; } if (_backgroundCanvas != null && _backgroundCanvas.IsValueCreated) { BackgroundCanvas.Geometry = _page.Geometry; } }
void OnLayoutUpdated(object sender, Native.LayoutEventArgs e) { Element.Layout(e.Geometry.ToDP()); }
void OnLayoutUpdated(object sender, Native.LayoutEventArgs e) { UpdateGeometry(); }
void OnContentLayoutUpdated(object sender, Native.LayoutEventArgs e) { UpdateContentSize(); }
void OnLayoutUpdated(object sender, LayoutEventArgs e) { UpdatPageLayout(sender, e); }