3 August 2022

Polyline Example in MAUI

  In this example we are going to see Polyline Example in MAUI.  

1) Add new page and Update code as below.

<?xml version="1.0" encoding="utf-8" ?>

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"

             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

             x:Class="MauiApp1.PolylineEXP1"

             Title="PolylineEXP1">

    <VerticalStackLayout>

        <Polyline Points="0,0 10,30, 15,0 18,60 23,30 35,30 40,0 43,60 48,30 100,30" Stroke="red"></Polyline>

    </VerticalStackLayout>

   </ContentPage>

Output:




Code in Github: https://github.com/adi501/MAUI 

No comments:

Post a Comment