Advertisement

05.27.2008 at 10:55PM PDT, ID: 23437139
[x]
Attachment Details

Silverlight - setting Width and Height from codebehind

Asked by mmexchange in Silverlight, C# Programming Language

How do I set the width and height for a Silverlight window in codebehind? Here is my (working) aspx code:
<asp:Media ID="mediaVideo" runat="server" MediaSkin="Blitz" MediaUrl="" Width="160px" Height="120px" AutoPlay="true" />

I want to be able to change the "Width" and "Height" from codebehind, based on different conditions.
The following doesn't seem to work:
      mediaVideo.Width = "320px";
      mediaVideo.Height = "240px";Start Free Trial
[+][-]05.28.2008 at 04:40AM PDT, ID: 21659467

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Silverlight, C# Programming Language
Sign Up Now!
Solution Provided By: WanaBRich
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.28.2008 at 08:22AM PDT, ID: 21661242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628