1
Xamarin.Formsでこれを行うことができるかどうかを知りたいと思います。Xamarin.formsでポリゴンを描く
私はすでにこのように私のレイアウトをseprateことができますが、私はポリゴンを描画するために行うことができますどのようにだろうか?あるいは、これを達成するための他の方法がありますか?ドロアブルのような良い方法?しかし、すべてのデバイスで同じである必要があります...
// Relative Layouts
this.contentLayout = new RelativeLayout();
this.topLayout = new RelativeLayout();
this.bottomLayout = new RelativeLayout();
//topLayout.BackgroundColor = Color.FromHex("#00162E");
//bottomLayout.BackgroundColor = Color.FromHex("#FFFFFF");
// Top and Bottom Layouts
this.contentLayout.Children.Add(
topLayout,
Constraint.RelativeToParent((parent) => { return 0; }),
Constraint.RelativeToParent((parent) => { return 0; }),
Constraint.RelativeToParent((parent) => { return parent.Width; }),
Constraint.RelativeToParent((parent) => { return (parent.Height/2.5); })
);
this.contentLayout.Children.Add(
bottomLayout,
Constraint.RelativeToParent((parent) => { return 0; }),
Constraint.RelativeToParent((parent) => { return this.topLayout.Height; }),
Constraint.RelativeToParent((parent) => { return parent.Width; }),
Constraint.RelativeToParent((parent) => { return (parent.Height/1.5); })
);
// Inside Top Layout
// ??? Draw Polygon
// Inside Bottom Layout
ありがとうございました!
楽しい一日を!