Example #1
0
 /// <summary>
 /// Raises event 'WidthChanged'
 /// </summary>
 protected virtual void OnWidthChanged()
 {
     if (WidthChanged != null)
     {
         WidthChanged.Invoke(this, System.EventArgs.Empty);
     }
 }
Example #2
0
 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);
     }
 }
Example #4
0
 /// <summary>
 /// Raises the <see cref="WidthChanged"/> event.
 /// </summary>
 protected void OnWidthChanged() =>
 WidthChanged?.Invoke(this);
 protected virtual void OnWidthChanged() => WidthChanged?.Invoke(this, EventArgs.Empty);
Example #6
0
 /// <summary>
 /// Called when [size allocated].
 /// </summary>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 protected override void OnSizeAllocated(double width, double height)
 {
     base.OnSizeAllocated(width, height);
     WidthChanged?.Invoke(width);
 }
Example #7
0
 private void RaiseWidthChanged()
 {
     WidthChanged?.Invoke(this, EventArgs.Empty);
 }
Example #8
0
 protected void OnWidthChanged()
 {
     _width = null;
     WidthChanged?.Invoke(this, EventArgs.Empty);
 }