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