Navigation


Milos Solution Platform (External Blog)

The Milos Solution Platform is .NET's premier platform for building business applications. This blog is meant for developers who use or evaluate Milos. This blog is used to share tidbits of information provided by the Milos developers at EPS. Many of the posts put the spotlight on new features. We generally recommend that all Milos users (developers) at least scan this blog to keep up with the Milos news.

Content Area Footer

Sunday, July 19, 2009
Silverlight ASP.NET Server Control Update

Here's a bit more on our ASP.NET Silverlight Control I talked about recently: We now updated this control to not just be compatible with the old control shipped by Microsoft, but to do things you might find useful. Here is a list of changes:

  • Default minimum version is now set to 3.0
  • Removed the ScaleMode property, since that just isn't supported by Silverlight anymore
  • Added the ability to very easily set that a control uses 100% of the available browser space
  • Added the ability to fire a storyboard in a splash screen XAML file
  • Added the ability to update a string in the splash screen that represents current download progress

Here is an example aspx file containing a Silverlight control (this one is from www.D2SIG.org):

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="D2SIGWeb._Default" %>
<%@ Register assembly="SimpleWebControls" namespace="EPS.Web.SimpleControls" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<
html xmlns="http://www.w3.org/1999/xhtml" >
  <
head runat="server">
   
<title>D2SIG - Developers &amp; Designers Special Interest Group</title>
 
</
head>
 
<
body>
   
<form id="form1" runat="server" style="height: 100%;">
     
<asp:ScriptManager ID="ScriptManager1" runat="server">
     
</asp:ScriptManager>
   
     
<cc1:Silverlight ID="Silverlight1" runat="server"
          
Source="~/ClientBin/D2SIGSL.xap"
          
DisplayMode="FullBrowser"
           SplashScreenSource="~/D2SIGLoading.xaml"
           
SplashScreenProgressUpdateObjectId="ProgressLabel"
          
SplashScreenStoryboard="Loading">
     
</cc1:Silverlight>
   
</form>
 
</
body>

</html>

Note that there are no div tags required anymore (you can still add them if you want to, but it is handled by the control automatically). Also, no CSS styles have to be defined for the 100% height and width anywhere. Instead, the DisplayMode of the control is set to FullBrowser, which handles the 100% height and width right in all browsers.

Also note that this example fires a storyboard called "Loading", which is inside the resources of the D2SIGLoading.xaml file.

Furthermore, that XAML file has a text run called "ProgressLabel" which is automatically updated with the current download percentage rounded to full numbers. The XAML file has a text run inside a textblock that is defined like this:

<TextBlock Height="14"
          
HorizontalAlignment="Center"
          
Width="45"
          
Canvas.Top="54"
          
TextAlignment="Center"
          
Foreground="#FF646464"
>
   
<
Run x:Name="ProgressLabel"
        
FontFamily="Trebuchet MS"
        
Text="0"/><Run FontFamily="Trebuchet MS" Text="%"
/>
</
TextBlock>

Note that whatever object is specified as the progress update object must have a Text property of type string. Note that you can create custom objects with that property, which will automatically be updated as progress changes. You could then do whatever you'd like with that value, including parsing it as a number and use that for further calculations.

 

Posted @ 4:16 PM by Egger, Markus (markus@code-magazine.com) -
Comments (27)




Comments:

RE: Silverlight ASP.NET Server Control Update
Tuesday, June 21, 2011 8:54 PM by new era - vsg@gcv.com

which will automatically be updated as progress changes. You could then do whatever you'd like with that value, including parsing it as a number and use that for further calculations.


RE: Silverlight ASP.NET Server Control Update
Friday, July 22, 2011 10:06 AM by ink cartridges - humza@oneindia.in

It is really very valuable post. Buy cheap ink cartridges in UK. Online purchasing facility is also available to buy at best discounted price inkjet cartridges.


RE: Silverlight ASP.NET Server Control Update
Monday, August 15, 2011 11:10 PM by Tayron Allyson - smiley8jam@gmail.com

Good to update more blog like this. It was pretty cool and I love it. I even like it most for I got an informative blog like this. Thanks for sharing it.


RE: Silverlight ASP.NET Server Control Update
Monday, August 15, 2011 11:13 PM by Kate Winslet - marjorie.ramirez22@gmail.com

I really appreciate the excellent quality content you are posting here for free for your online readers. I hope that your going to continue on posting of an interesting topic like this.


RE: Silverlight ASP.NET Server Control Update
Monday, August 15, 2011 11:29 PM by monique - marshamay28@gmail.com

The ASP.NET Silverlight control enables you to integrate XAML and any supporting code (a managed-code assembly, a managed dynamic-language script module, or client JavaScript libraries) into a Web site.
Unlike the MediaPlayer server control, the Silverlight server control is generic and is not designed only to manage media files but other files as well. These controls are designed to seamlessly integrate with the Silverlight client plug-in to deliver Rich Internet Applications (RIA).


RE: Silverlight ASP.NET Server Control Update
Thursday, August 18, 2011 1:59 AM by Botox - sonamsnv@gmail.com

I actually added your blog to my favorites and will look forward for more updates. This is very informative post. Great Job, Keep it up. Thanks for giving us nice info. Fantastic walk-through. I appreciate this post.


jordan xiii
Wednesday, September 07, 2011 1:01 AM by jordan xiii - holdyesi@msn.com

You clearly know what you are doing. It's good to see this information in your article.


Dell Inspiron 1721 Akku
Tuesday, September 13, 2011 4:51 AM by Dell Inspiron 1721 Akku - PKJHMKHNM@YAHOO.COM

Helpful post, though in 8.04 you need to double click on the volume control, click on Edit/Preferences, then check External amplifier to be visible. The switches tab then appears. Uncheck External amplifier in that tab. Worked for me anyway.


Awesome post.this was a really good article.thanks for sharing.


RE: Silverlight ASP.NET Server Control Update
Monday, October 10, 2011 11:51 PM by Bridal Party - zhangyang@yahoo.com

Exclusive wedding dresses can also appear to become quite unique using the colour employed. Numerous are choosing distinct colors for their distinctive wedding dresses. Another strategy to make your exclusive wedding gowns is to select a theme like probably the medieval or the renaissance era gowns. A well-liked option is actually a Grecian inspired gown that may make you search like a goddess. Medieval dresses are also a good option but this sort of gown looks much better for slimmer brides since the heavy material and style will add fullness for the bride's body. And no bride would like to look body fat on their wedding day.


android developer
Tuesday, October 18, 2011 1:53 AM by android developer - kiruthika@website-redesign.biz

I enjoyed every little bit part of it and I will be waiting for the new updates.Thanks. I am very much impressed from your post.It has amazing information.I learned lot of new things which explores my knowledge in various developments.So i must appreciate your efforts on posting these information.


RE: Silverlight ASP.NET Server Control Update
Friday, October 28, 2011 7:23 AM by OFAC SDN List - ashleywills@gmail.com

Great article ...Thanks for your great information, the contents are quiet interesting.I will be waiting for your next post.


RE: Silverlight ASP.NET Server Control Update
Tuesday, November 08, 2011 6:35 PM by SWF Converter for Mac - plant2013@gmail.com

Preparation: Free download and install Mac SWF Video Converter, launch it.


Magento themes
Friday, November 11, 2011 4:56 AM by Magento themes - jayee.1202@gmail.com

I would like to appreciate the great work done by the web master and would like to tell everyone that they should post their interesting comments..I must appreciate your efforts on posting these information.


RE: Silverlight ASP.NET Server Control Update
Friday, November 11, 2011 11:46 PM by roof contractor minneapolis - sonamsnv@gmail.com

The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog,looking forward for more contents...Great job, keep it up..


Miami Beach Condos
Wednesday, December 28, 2011 11:02 PM by rajmangal - miamibeachcondos123@gmail.com

I enjoyed every little bit allotment of it and I will be cat-and-mouse for the fresh updates.Thanks. I am actual abundant afflicted from your post.It has amazing information.I abstruse lot of fresh things which explores my ability in assorted developments.So i charge acknowledge your efforts on announcement these information


lucky patcher for pc
Sunday, October 22, 2017 11:20 PM by lucky patcher for pc - kranthiraj@mail.com

lucky patcher for pc After the release of Lucky Patcher apk for Android device


RE: Silverlight ASP.NET Server Control Update
Saturday, November 25, 2017 2:07 AM by Dissertation Proposal Writing Service - elizajabeen@gmail.com

Extraordinary article ...Thanks for your awesome data, the substance are calm interesting.I will sit tight for your next post.


RE: Silverlight ASP.NET Server Control Update
Thursday, December 21, 2017 11:46 PM by affordable electrician tampa fl - waterdamagesanjoseca@gmail.com

Amazing stuff! The informative stuff that you created is very useful for the readers. Keep sharing such a useful content.


RE: Silverlight ASP.NET Server Control Update
Wednesday, January 24, 2018 5:00 AM by iPhone application development company

Actually significant written content. the information that you shown is hard to trust and many wonderfully i liked the way you provide things here.


Office.Com/Myaccount, Microsoft Office Setup
Friday, May 25, 2018 2:57 AM by Www.Office.Com/Myaccount - anjelinajackson9@gmail.com

Install and download it online from www.office.com/setup, make sure that your system has the internet connection through the process.


Avg.Com/Retail | AVG Technical Support
Friday, May 25, 2018 2:58 AM by Www.Avg.Com/Retail, AVG Technical Support - anjelinajackson9@gmail.com

Buy AVG antivirus & Internet Security 2018 to help protect your computer from virus, spyware & malware. Visit us online for attractive deals.


AVG Support Phone Number | AVG Support
Friday, May 25, 2018 2:59 AM by AVG Tech Support, Avg.Com/Retail - anjelinajackson9@gmail.com

Download AVG antivirus Installer using the direct links provided below. Includes AVG Free, Antivirus, Internet Security and PC Tuneup.


Www.Mcafee.Com/Retailcard | Www.Mcafee.Com/Activate
Friday, May 25, 2018 3:00 AM by Mcafee.Com/Activate, Www.Mcafee.Com/Activate - anjelinajackson9@gmail.com

How You Can Redeem Your McAfee Product Key and Get You Antivirus Activated In Few Easy steps. Quick Learn How You Can Use McAfee.com/activate to Activate McAfee using Product Key.


Webroot.Com safe | Webroot Activate
Friday, May 25, 2018 3:00 AM by Webroot.com/safe, Www.Webroot.com/safe - anjelinajackson9@gmail.com

Webroot Internet Security software is like the bigger, stronger sibling of their Webroot Antivirus software. You get the same leading security against crippling viruses and other annoying malware, as well as a bunch of extra features that protect you from threats against your computer and against your privacy.


chargeback management
Tuesday, June 26, 2018 7:02 AM by chargeback management - pritammishra97x@gmail.com

We have a three-part technology to defend against chargebacks. Using our technology frees you up to concentrate on your business and keeps up your merchant account so that you can grow your business.


adobe support number
Tuesday, June 26, 2018 7:02 AM by adobe support number - pritammishra97x@gmail.com

adobe support number – Adobe is an American multinational software company which is well known for its creation of multimedia and creativity software products.


www.mcafee.com
Tuesday, June 26, 2018 7:03 AM by www.mcafee.com - pritammishra97x@gmail.com

www.mcafee.com/activate - Activate Your McAfee Retail card by simply visiting our website mcafee.com/activate and Get Started with McAfee Security.




Post a Comment:

Comment Title (required)

Your Name (optional)

Your Email (optional)

Your Web Site (optional)

Your Comment (required)

 

 

 

 

 

 

 

Syndication RSS 2.0 RSS 2.0

All My Blogs:
My personal blogs:
Dev and Publishing Dev and Publishing
Travel and Internat. Living Travel and Internat. Living
Other blogs I contribute to:
Milos Blog (US) Milos Blog (US)
VFPConv. Dev Blog (US) VFPConv. Dev Blog (US)
VFPConv. Dev Blog (DE) VFPConv. Dev Blog (DE)

 

Blog Archives
All Blog Posts

2010
    November (1)
2009
    July (2)
    February (2)
    January (1)
2008
    December (1)
    October (3)
    June (1)
    April (3)
    February (1)
    January (1)
2007
    December (1)
    October (2)
    September (2)
    July (1)
    June (2)
    May (4)
    April (6)
    March (8)
    February (3)
    January (2)
2006
    December (2)
    November (2)

 

 

 

This Blog is powered by MilosTM Collaboration Components.