how to draw polygon in uwp vb.net

  • Thread starter Thread starter Shay_w
  • Start date Start date
S

Shay_w

Guest
Hi

How to draw a polygon in code vb.net not xaml

I Have example in c# but it doesn't work in vb.net

var polygon1 = new Polygon();
polygon1.Fill = new SolidColorBrush(Windows.UI.Colors.LightBlue);

var points = new PointCollection();
points.Add(new Windows.Foundation.Point(10, 200));
points.Add(new Windows.Foundation.Point(60, 140));
points.Add(new Windows.Foundation.Point(130, 140));
points.Add(new Windows.Foundation.Point(180, 200));
polygon1.Points = points;


If i write

Dim poly As New polygon

polygon doesn't appear in intellisense

thanks

Continue reading...
 
Back
Top