0

I am trying to draw the rectangular box on stacklayout's view programmatically (on runtime) using javascript so if any one has a solution for that please do tell me.

Thnx in advance

Parag

user825897
  • 11
  • 2

1 Answers1

1

place a canvas part on the view within stacklayout then use canvas draw functions from js;

var c=document.getElementById("canvas");
var cxt=c.getContext("2d");
cxt.fillStyle="#FF0000";
cxt.fillRect(0,0,75,75);
dcs
  • 155
  • 1
  • 1
  • 5