private void AnimateNext() { if (enumerator.MoveNext()) { word = enumerator.Current; SetWord(word); BeginAnimate(); } }
public void SetWord(StrokeWord word) { this.word = word; group.Children.Clear(); group.Children.Add(background); group.Children.Add(grid); character = new GeometryDrawing(Brushes.Gray, null, new PathGeometry(word.Strokes.Select(x => x.Outline)) { FillRule = FillRule.Nonzero }); group.Children.Add(character); }