public void handleScrolled(DimensionChangedEventArgs args) { if (args.Type == DimensionType.ScrollAmount) { ScrollChanged?.Invoke(this, args); } }
public void handleDimensionChanged(DimensionChangedEventArgs args) { if (args.Type == DimensionType.ScreenHeight) { HeightChanged?.Invoke(this, args); } else if (args.Type == DimensionType.PageWidth) { WidthChanged?.Invoke(this, args); } }
public override void handleDimensionChanged(object sender, DimensionChangedEventArgs args) { int new_value = Math.Max(screen_height, args.NewValue); changeDimension(new_value); }
public virtual void handleDimensionChanged(object sender, DimensionChangedEventArgs args) { changeDimension(args.NewValue); }
public override void handleDimensionChanged(object sender, DimensionChangedEventArgs args) { int left = Math.Max(0, (args.NewValue - render_width) / 2); changeDimension(left); }