예제 #1
0
 public void handleScrolled(DimensionChangedEventArgs args)
 {
     if (args.Type == DimensionType.ScrollAmount)
     {
         ScrollChanged?.Invoke(this, args);
     }
 }
예제 #2
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);
     }
 }
예제 #3
0
        public override void handleDimensionChanged(object sender, DimensionChangedEventArgs args)
        {
            int new_value = Math.Max(screen_height, args.NewValue);

            changeDimension(new_value);
        }
예제 #4
0
 public virtual void handleDimensionChanged(object sender, DimensionChangedEventArgs args)
 {
     changeDimension(args.NewValue);
 }
예제 #5
0
        public override void handleDimensionChanged(object sender, DimensionChangedEventArgs args)
        {
            int left = Math.Max(0, (args.NewValue - render_width) / 2);

            changeDimension(left);
        }