/// <summary> /// </summary> internal void SetGeometry(Geometry geometry) { _geometry = geometry; Material = _geometry?.Material; GeometryChanged?.Invoke(geometry); }
/// <summary> /// Notify this shape that one or more of its vertices or another aspect /// of it's geometric definition has been altered. May prompt recalculation /// of certain other properties. /// </summary> internal void NotifyGeometryUpdated() { InvalidateCachedGeometry(); if (!_SuppressChangedNotification) { if (Element != null) { Element.NotifyGeometryUpdated(); } GeometryChanged?.Invoke(this, new GeometryUpdateEventArgs()); } }
protected virtual void OnGeometryChanged(GeometryPageEventArgs e) { GeometryChanged?.Invoke(this, e); }
/// <summary> /// Raise a ValueChanged event on this control /// </summary> /// <param name="d"></param> /// <param name="e"></param> public void RaiseGeometryChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { GeometryChanged?.Invoke(d, e); }