protected override void OnSizeAllocated(double width, double height) { base.OnSizeAllocated(width, height); if (lastHeight != Height) { lastHeight = Height; HeightChanged?.Invoke(this); } }
protected LeafElement() { Control.SizeChanged += (sender, args) => { SizeChanged?.Invoke(); WidthChanged?.Invoke(); HeightChanged?.Invoke(); BottomChanged?.Invoke(); RightChanged?.Invoke(); }; }
public void handleDimensionChanged(DimensionChangedEventArgs args) { if (args.Type == DimensionType.ScreenHeight) { HeightChanged?.Invoke(this, args); } else if (args.Type == DimensionType.PageWidth) { WidthChanged?.Invoke(this, args); } }
internal static void OnHeightChanged(double height) { HeightChanged?.Invoke(null, height); }
/// <summary> /// Raises the <see cref="HeightChanged"/> event. /// </summary> protected virtual void OnHeightChanged() => HeightChanged?.Invoke(this);
private void OnHeightChanged(float newHeight) { HeightChanged?.Invoke(newHeight); }
protected virtual void OnHeightChanged() => HeightChanged?.Invoke(this, EventArgs.Empty);
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); }
public void OnHeightChanged(double difference) { HeightChanged?.Invoke(difference); }