/// <summary> /// Raises event 'WidthChanged' /// </summary> protected virtual void OnWidthChanged() { if (WidthChanged != null) { WidthChanged.Invoke(this, System.EventArgs.Empty); } }
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); } }
/// <summary> /// Raises the <see cref="WidthChanged"/> event. /// </summary> protected void OnWidthChanged() => WidthChanged?.Invoke(this);
protected virtual void OnWidthChanged() => WidthChanged?.Invoke(this, EventArgs.Empty);
/// <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); }
private void RaiseWidthChanged() { WidthChanged?.Invoke(this, EventArgs.Empty); }
protected void OnWidthChanged() { _width = null; WidthChanged?.Invoke(this, EventArgs.Empty); }