Hi,

I want to use a background image for a StylesStringElement, and somehow
that does not work. Here's the straightforward code:

Root = new RootElement("I'm the root") {
   new Section {
       new StyledStringElement {
           Caption = "I'm styled",
           TextColor = UIColor.Black,
           BackgroundColor = UIColor.Clear,
           BackgroundUri = new Uri(@"file://Images/MyBackground.png");
       }
   }
}

I'd expect to see an element with the MyBackground.jpg, but I get a plain
white background. The setting of the clear background also has no effect
at all.

I think that the BackgroundUri is the only straightforward method to set
a background to replace the plain color background.

But apparently, there's something missing in the state of...

Any suggestions?


Guido

--
Where am I?  Who am I?  Am I?  I

http://vanhoecke.org ... and go2 places!
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to