Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to add background image to grid layout?

I need to add background image to grid layout.
Tagged:

Best Answer

Answers

  • JohnHardmanJohnHardman GBUniversity admin
    edited November 2018

    @Suriya_Kalidoss said:
    I need to add background image to grid layout.

    Load the image into an Image, then position the Image to span all columns and all rows of the Grid.

  • Suriya_KalidossSuriya_Kalidoss Member ✭✭✭

    I can't able to understand could you please provide me code snippet

  • seanydaseanyda GBMember ✭✭✭✭✭

    @Suriya_Kalidoss said:
    I can't able to understand could you please provide me code snippet

     Grid test = new Grid();
    
                Grid.SetRowSpan(testItem, test.RowDefinitions.Count);
                Grid.SetColumnSpan(testItem, test.ColumnDefinitions.Count);
    
  • Suriya_KalidossSuriya_Kalidoss Member ✭✭✭

    IF it is XAML code it could be better



  • NMackayNMackay GBInsider, University admin
Sign In or Register to comment.