R – Change Silverlight Full Screen Background Color

fullscreensilverlight-2.0

I have a 800×600 screen resolution silverlight application.When i use the code to make it full screen, ( i have current screen resolution of 1280×1024) it shows white background around my 800×600 black box.

i tried changing canvas background color and UserControl background color property but no effects.

is there any way to change the background color in full screen mode ?

Best Answer

I'm assuming that you're hosting the control on an aspx page?

Have you tried setting BackColor on the Silverlght control?

<asp:Silverlight ID="slControl" BackColor="Black" runat="server" Source="~/ClientBin/TestApp.xap" MinimumVersion="2.0.31005.0" Width="800" Height="600" />
Related Topic