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