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