public static IEnumerable <Point> GetGroupPoints(this GeometryGroup geometryGroup) { if (geometryGroup != null) { foreach (Geometry geometry in geometryGroup.Children) { foreach (Point point in GeometryExtensions.GetPoints(geometry)) { yield return(point); } } } }
public void UpdatePoints() { IEnumerable <Point> points = GeometryExtensions.GetPoints(this.Outline); this.Points.BeginInit(); try { this.Points.Clear(); foreach (Point point in points) { this.Points.Add(point); } } finally { this.Points.EndInit(); } }