Home > database >  How to draw just the borders of a rectangle?
How to draw just the borders of a rectangle?

Time:06-29

I'm customizing a Xamarin.forms.control. I want to put it inside a "box", we can call it rectangle.So all I want is the border.

this.Control.SetBackground(d); 

here d has to be a Android.Graphics.Drawables.Drawable. How can I create such a drawable,just the borders of a box?

CodePudding user response:

If you can't use a frame, you can layer two enter image description here

For more details, you could refer to the case link i done before. Loading indicator around stacklayout

  • Related