protected override void OnSizeAllocated(double width, double height)
        {
            base.OnSizeAllocated(width, height);

            if (lastHeight != Height)
            {
                lastHeight = Height;
                HeightChanged?.Invoke(this);
            }
        }
Ejemplo n.º 2
0
 protected LeafElement()
 {
     Control.SizeChanged += (sender, args) =>
     {
         SizeChanged?.Invoke();
         WidthChanged?.Invoke();
         HeightChanged?.Invoke();
         BottomChanged?.Invoke();
         RightChanged?.Invoke();
     };
 }
Ejemplo n.º 3
0
 public void handleDimensionChanged(DimensionChangedEventArgs args)
 {
     if (args.Type == DimensionType.ScreenHeight)
     {
         HeightChanged?.Invoke(this, args);
     }
     else if (args.Type == DimensionType.PageWidth)
     {
         WidthChanged?.Invoke(this, args);
     }
 }
Ejemplo n.º 4
0
 internal static void OnHeightChanged(double height)
 {
     HeightChanged?.Invoke(null, height);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Raises the <see cref="HeightChanged"/> event.
 /// </summary>
 protected virtual void OnHeightChanged() =>
 HeightChanged?.Invoke(this);
Ejemplo n.º 6
0
 private void OnHeightChanged(float newHeight)
 {
     HeightChanged?.Invoke(newHeight);
 }
 protected virtual void OnHeightChanged() => HeightChanged?.Invoke(this, EventArgs.Empty);
Ejemplo n.º 8
0
 public void heightChanged(int height)
 {
     HeightChanged?.Invoke(this, new DimensionChangedEventArgs(height, DimensionType.PageHeight));
 }
 public void OnLayoutChange(Android.Views.View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom)
 {
     HeightChanged?.Invoke(v, bottom - top);
 }
Ejemplo n.º 10
0
 public void OnHeightChanged(double difference)
 {
     HeightChanged?.Invoke(difference);
 }