I've never seen a BackgroundUri property. I've seen Background, which
is normally a UIView (and you can load a UIImage into it with new
UIImageView(UIImage.FromFile("your filename.png")) )....?

that said, I dont use styledstringelement much, so I might have missed it :)

On 22 January 2013 13:28, Robert Reck <[email protected]> wrote:
> Probably just a typo, but in your code you reference a .png file. In your 
> text you reference a .jpg file. Are you sure you have the right extension on 
> the file name?
>
> Bob
>
> --
> Bob Reck <[email protected]<mailto:[email protected]>>
> PII Quality Assurance Auditor
> Senior Applications Developer
> ___________________
> www.keylogic.com<http://www.keylogic.com/>
> 443.539.9065
> 301.621.8920 (fax)
>
> The information contained in this message may be privileged, private and 
> protected from disclosure. If the reader of this message is not the intended 
> recipient, or an employee or agent responsible for delivering this message to 
> the intended recipient, you are hereby notified that any dissemination, 
> distribution or copying of this communication is strictly prohibited. If you 
> have received this message in error, please notify us immediately by replying 
> to the message.
>
> On Jan 22, 2013, at 7:18 AM, "Guido Van Hoecke" 
> <[email protected]<mailto:[email protected]>> wrote:
>
> 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
> [email protected]<mailto:[email protected]>
> http://lists.ximian.com/mailman/listinfo/monotouch
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to