コード例 #1
0
ファイル: StrokeDisplay.xaml.cs プロジェクト: bmn28/XianDict
 private void AnimateNext()
 {
     if (enumerator.MoveNext())
     {
         word = enumerator.Current;
         SetWord(word);
         BeginAnimate();
     }
 }
コード例 #2
0
ファイル: StrokeDisplay.xaml.cs プロジェクト: bmn28/XianDict
        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);
        }