Orange Color on BoxView

How can I put the orange color to a BoxView in Xamarin form?

Best Answer

  • juliodljuliodl ✭✭
    edited February 25 Accepted Answer

    Found this:

    I use #FFA500 as Color

Answers

  • LucasZhangLucasZhang Member, Xamarin Team Xamurai

    Do you want to set the BackgroundColor of the boxview as orange? Refer to the following code.

    <BoxView Color="Orange"                 
    WidthRequest="160"            
    HeightRequest="160"            
    VerticalOptions="Center"           
    HorizontalOptions="Center" />
    
  • juliodljuliodl Member ✭✭
    edited February 25 Accepted Answer

    Found this:

    I use #FFA500 as Color

  • LucasZhangLucasZhang Member, Xamarin Team Xamurai

    Ok .So,is my answer helpful?

  • JohnHardmanJohnHardman GBUniversity mod

    @juliodl said:
    Found this:
    I use #FFA500 as Color

    For readability and ease of maintenance, it would be better to use the named Color "Orange" as per the post by "Quintán" at https://forums.xamarin.com/discussion/comment/365770/#Comment_365770

  • juliodljuliodl Member ✭✭
    The color Orange dont display when use Color=“”

    I use #FFA5500 as Color Orange
  • JohnHardmanJohnHardman GBUniversity mod

    @juliodl said:
    The color Orange dont display when use Color=“”

    I use #FFA5500 as Color Orange

    What version of the Xamarin.Forms NuGet are you using?

Sign In or Register to comment.