RE: [OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Philip Beadle
I got the same behaviour when I changed the ph to a div?? Weird. Regards, Philip Beadle Readify | Principal Consultant Microsoft MVP - ASP/ASP.NET, MCAD, MCT Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia M: +61 417 301 024 | E: [EMAIL PROTECTED]

[OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Philip Beadle
Thanx Jordan that's just what I need. Regards, Philip Beadle Readify | Principal Consultant Microsoft MVP - ASP/ASP.NET, MCAD, MCT Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia M: +61 417 301 024 | E: [EMAIL PROTECTED] | C: [EMAIL PROTECTED] |

Re: [OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Stephen Price
Ah, changed it from this.Controls.Add to a placeholder which works fine. (which judging by your control name of phSilverlight you are using too) Wonder why it won't show the Silverlight control if you add it to the page rather than a placeholder. On Mon, Sep 1, 2008 at 4:55 PM, Philip Beadle <[EMA

RE: [OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Jordan Knight
Oh wait, that is from ASPX... can you adjust the containing div from within Silverlight without going over JS bridge yourself? This feels a little hack-ish: HtmlPage.Document.GetElementById("commentsSection").SetStyleAttribute("height", string.Format("{0}px", acutalHeight)); From: [EMAIL PROT

RE: [OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Jordan Knight
Cool, looks a bit easier than my hack going across the JS bridge :) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Price Sent: Monday, 1 September 2008 6:33 PM To: listserver@ozsilverlight.com Subject: Re: [OzSilverlight] RE: Setting SL contol top 100% the Unit("100%") wor

RE: [OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Philip Beadle
Worked fine for me. thanx Regards, Philip Beadle Readify | Principal Consultant Microsoft MVP - ASP/ASP.NET, MCAD, MCT Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia M: +61 417 301 024 | E: [EMAIL PROTECTED] | C: [EMAIL PROTECTED] | W: www.readif

Re: [OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Stephen Price
the Unit("100%") works for me. If I change the plugin background to a different colour I can see it using 100% of the browser. What I'm puzzled about is that I can't see the silverlight page contents, its blank. namespace SLPluginWeb { public partial class _Default : System.Web.UI.Page {

[OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Jordan Knight
Sorry that was worded badly: The post outlines how to re-size the containing to the same size as the content (it stretches and contracts as you do stuff in the Silverlight control).. this is cool for something like a comments control where users can keep adding more comments and the control ne

Re: [OzSilverlight] Accessing the App.xaml resources

2008-09-01 Thread Jonas Follesø
Hi, Silverlight does not support binding against static classes. One thing you could do is something like this: Create a simple binding helper class that implements INotifyPropertyChanged, and with one Bool property. Then create a app level resource like this: Then in your App_Startup,

[OzSilverlight] RE: Setting SL contol top 100%

2008-09-01 Thread Jordan Knight
Hey Phil, I wrote a little blog post here http://jakkaj.wordpress.com/2008/07/05/resize-silverlight-control-div/ on how to control the size of the control from code. This code makes it the size that is required automatically, but I'm sure you can adapt it :) From: [EMAIL PROTECTED] [mailto:[E

Re: [OzSilverlight] Setting SL contol top 100%

2008-09-01 Thread .net noobie
you may also want to use the silverlight control property ScaleMode=Stretch ScaleMode=Zoom depending on how you content of your control is setup in relation to it's size/margin settings...? On 9/1/08, Stephen Price <[EMAIL PROTECTED]> wrote: > > Try this; > > silverlightControl.Width = new Unit

Re: [OzSilverlight] Setting SL contol top 100%

2008-09-01 Thread Stephen Price
Try this; silverlightControl.Width = new Unit("100%"); It seems to work for me except that my control isn't showing up when I add it to the controls. Not sure what I've missed there. Can you post the web form so I can compare it with mine? cheers, Stephen On Mon, Sep 1, 2008 at 2:55 PM, Philip

Re: [OzSilverlight] Accessing the App.xaml resources

2008-09-01 Thread Stephen Price
Awesome, make sure you blog that Silverlight/DNN stuff, I'm looking at getting that happening myself. On Mon, Sep 1, 2008 at 1:47 PM, Philip Beadle <[EMAIL PROTECTED]>wrote: > That worked nicely. I forgot the INotifyPropertyChanged and went off on > a tangent when it didn't work J > > > > Make