Tag Archives: canvas

WPF Canvas Fill

Questions: I currently have a WPF windows with a Canvas is 600 x 400. Is it possible to scale or automatically zoom in so that the lines take up as much as the 600×600 as possible? <Border> <Canvas x:Name=”cMap” Width=”600″ Height=”400″> <Line X1=”5″ Y1=”5″ X2 =”10″ Y2=”10″ StrokeThickness=”2″ Stroke=”Black”/> <Line X1=”10″ Y1=”10″ X2 =”15″ Y2=”25″… Read More »

Binary XML file line #54: Error inflating class MainActivity.CanvasView

Questions: I’m using this class to draw a CanvasOval by inflating this class from my xml file. public class CanvasView extends View { int height, width; public CanvasView(Context context) { super(context); } public CanvasView(Context context, AttributeSet attrs) { super(context, attrs); } public CanvasView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override protected… Read More »