How can I add padding around the content within a frame?

Platform: .NET MAUI| Category: General

You can use the Padding property to add space around the content within a frame. For example:

XAML

<Frame CornerRadius="5" BorderColor="Black" 
                        	  HasShadow="True"
				  Padding="10" 
                            HeightRequest="200" 
				  BackgroundColor="Gray"                         
                            WidthRequest="200">        
            <Label Text="Frame wrapped around a Label" />    
    </Frame> 

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.