Esempio n. 1
0
        /// <summary>
        /// </summary>
        internal void SetGeometry(Geometry geometry)
        {
            _geometry = geometry;

            Material = _geometry?.Material;

            GeometryChanged?.Invoke(geometry);
        }
Esempio n. 2
0
 /// <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());
     }
 }
Esempio n. 3
0
 protected virtual void OnGeometryChanged(GeometryPageEventArgs e)
 {
     GeometryChanged?.Invoke(this, e);
 }
Esempio n. 4
0
 /// <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);
 }