Exemplo n.º 1
0
 protected override void OnRender(DrawingContext drawingContext)
 {
     if (Fill == null && SpriteData != null)
     {
         Fill = ToWPF.Convert(SpriteData.GetFrame(Animation, Orientation, AnimationProgress));
     }
     drawingContext.DrawRectangle(Fill, null, _Rectangle);
 }