|
|
|
@ -108,6 +108,11 @@ namespace OrderStacks.view
|
|
|
|
|
card = new SKRect(-width, -height - textPaint.TextSize, width + textPaint.MeasureText(display), height);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SKPaint paint = new SKPaint();
|
|
|
|
|
paint.Color = Color;
|
|
|
|
|
paint.StrokeWidth = 5;
|
|
|
|
|
paint.Style = SKPaintStyle.Stroke;
|
|
|
|
|
|
|
|
|
|
// Permet de traiter les fractions
|
|
|
|
|
if (Value.GetType() == typeof(FractionCardVM))
|
|
|
|
|
{
|
|
|
|
@ -149,8 +154,6 @@ namespace OrderStacks.view
|
|
|
|
|
xDen -= textPaint2.MeasureText("-");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SKPaint paint = textPaint1;
|
|
|
|
|
paint.Style = SKPaintStyle.Stroke;
|
|
|
|
|
canvas.DrawRect(card, paint);
|
|
|
|
|
canvas.DrawText(((FractionCardVM)Value).Fraction.Numerateur.ToString(), xNum, -height * 0.5f, textPaint);
|
|
|
|
|
canvas.DrawText(fractionBarre, -textPaint1.MeasureText("_") * 0.5f, -textPaint1.TextSize * 0.5f, textPaint1);
|
|
|
|
@ -158,8 +161,6 @@ namespace OrderStacks.view
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SKPaint paint = textPaint;
|
|
|
|
|
paint.Style = SKPaintStyle.Stroke;
|
|
|
|
|
canvas.DrawRect(card, paint);
|
|
|
|
|
canvas.DrawText(display, 0, 0, textPaint);
|
|
|
|
|
}
|
|
|
|
|