Forum Libraries, Components, and Plugins
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 change background color

Hi, when I load urhosharp view in my layout container, it is showing a black background. I want to change it to another color. How can I do it?

I tried to change background color of my layout container that contains urhosharp view. Also I was looking for option to set a color in skybox. But cannot solve it. Can you give me some directions?


Best Answers


  • MdTahmidMozaffarMdTahmidMozaffar USMember ✭✭

    Thank you for this solution. Actually I have tried this earlier but did not succeed. I have done this using another solution. Here is what I wrote to change the background of my urhosharp view.... This is working for me.

    var zone = Renderer.DefaultZone;
    zone.FogColor = new Color (0.65f, 0.8f, 0.6f, 0);

  • djgtramdjgtram HUMember ✭✭
    edited November 2018

    That's the color after the scene renders. But can we do something about the black showing while the scene starts?

  • kirpsy014kirpsy014 Member ✭✭

    Hi how can i render background color? Mine won't work when i type (BackgroundColor="#2f4259") in top of x:Class

Sign In or Register to comment.