Пример #1
0
 protected virtual void OnBackgroundLayoutUpdated(object sender, Native.LayoutEventArgs e)
 {
     if (_backgroundCanvas.IsValueCreated)
     {
         BackgroundCanvas.Geometry = Control.Geometry;
     }
 }
Пример #2
0
 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();
 }
Пример #3
0
        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;
            }
        }
Пример #4
0
 void OnLayoutUpdated(object sender, Native.LayoutEventArgs e)
 {
     Element.Layout(e.Geometry.ToDP());
 }
Пример #5
0
 void OnLayoutUpdated(object sender, Native.LayoutEventArgs e)
 {
     UpdateGeometry();
 }
Пример #6
0
 void OnContentLayoutUpdated(object sender, Native.LayoutEventArgs e)
 {
     UpdateContentSize();
 }
Пример #7
0
 void OnLayoutUpdated(object sender, LayoutEventArgs e)
 {
     UpdatPageLayout(sender, e);
 }