Animation Along a Path for Silverlight
Sometime ago I posted a topic on Silverlight.net about how to get an control to follow a Path. This resulted in many good suggestions, but not actually what I wanted.
Today I then saw this on my RSS reader: Animation Along a Path for Silverlight, which sounded exactly like what I was looking for. I just wanted to give you, readers, an headsup on this one. I haven't actually tried this out yet, but it looks very promissing.
Enjoy!
Silverlight Tools RTW released
Oh my god, it's the big release day today. Finally the RTW version of the Silverlight Tools were released. To be honest, I can't see the big changes when looking at the feature list, but there must be something, just not that clear I think.
You can see more here at this post: http://silverlight.net/blogs/msnow/archive/2008/10/28/silverlight-tools-rtw-released.aspx
Fullscreen samples for Silverlight
I have now been searching for some good fullscreen Silverlight 2.0 final release samples, but with out luck. Therefore I created this thread on silverlight.net to find out. I got good responses and made this little project with two ways of doing it.
You can download the project here as a zip file
The project includes two ways of doing "fullscreen" applications.
You choose between the two different ways by commenting in the one you like in the App.xaml.cs file.
[code:c#]
this.RootVisual = new Fullscreen1();
//this.RootVisual = new Fullscreen2();
[/code]
Fullscreen1 - Shows how to make an application fullscreen/browser by setting "styles" on the controls to make them resize properly.
Fullscreen2 - Shows how to scale up your application by code.
It's two different ways of doing it as I see it and is used in different scenarios.
The way it's done in Fullscreen1 will typically be used for "application", meaning an application with a "static" layout.
The way it's done in Fullscreen2 is more for "games", as it scales the hole application up, which can constain lots of different dynamic controls at the time.
Well, this is just the way I see it at the moment please let me know if you think otherwise, I could be wrong. 
Silverlight Toolkit released
The Silverlight Toolkit has been released at Codeplex.com. This kit is similar to the Ajax Control Toolkit for ASP.NET, as it extends existing controls and add totally new ones to the framework.
Get Silverlight Toolkit from here
See some samples of the charts here
Or here to see samples of controls
Bubbles - Source released
I have cleaned up the source for Bubbles a little and am now releasing it for you to enjoy. The source is released as-is, and some encryption/security code have been removed to keep my hiscore as correct as possible.
Get the source from here
Silverlight game "Bubbles" - on www.silverlight.net
This Wednesday I submitted my first Silverlight 2.0 (final release) game to Silverlight.net late at night. Already the next day it was up there, great!
The basic concept in the game is to "pop" as many bubbles as you can in 30 seconds, pretty simple. The best thing is that it also has a hi-score, which means that you can fight to become the "Bubble Master aka #1". The game is a complete rewrite of a similar game I did in Beta 1 and Beta 2.
You can play the game directly on my site here: http://silverlight.laumania.net/bubbles/
Or you can get to it through Silverlight.net here: http://silverlight.net/community/gallerydetail.aspx?cat=sl2
I'm planing to release the source code for it, I just wanted to add some minor fixes and changes to the game before that. So you should be able to find the source on my site here, and on Silverlight.net in some time.
Enjoy!
Silverlight 2 will be available Tuesday, Oct. 14 2008
Wow, I'm wasn't expecting it until later this month! But this is great news! :)
I got the info from this link, see at the bottom: http://www.microsoft.com/presspass/press/2008/oct08/10-13Silverlight2PR.mspx
Credits goes to Andy Beaulieu as I saw it on his post: http://www.andybeaulieu.com/Default.aspx?tabid=67&EntryID=121
Silverlight 2.0 is here, and we are all happy!
Update: Now the tools and runtime is downloadable from http://silverlight.net/GetStarted/
Avoid "Click to activate and use this control" with Silverlight in IE
This little problem have hunted me for sometime now, I just never took the time to find a solution until now.
Let me sum up the problem.
When you deploy a silverlight application using the "ASP.NET 3.5"
way by inserting a ScripManager and a SilverlightControl to embed your
app, all seems to work great! The SL app runs in the browser with out the user having to do anything.
But what if you are going to deploy your app to a ASP.NET 1.1, ASP.NET 2.0, ASP, PHP, JSP or what ever site? If you need to do this, you can use the normal <object> tag to insert your application. (See the .html file generated in the Web Application Project when creating a Silverlight Application in Silverlight Beta 2). This also works great, but in IE I get an irritating "Click to activate and use this control" with an ungly border around my SL app.
What causes this, and how to we work around it?
Well, I found out that this is due to some "problem" in IE and it should be fixed in an update to IE from April 2008. See the post here.
I discovered that the virtual machine that I use to code in, where not updating automatically, which is why I see the problem.
We could all just lean back, and think "Ok, everybody updates, so there is no problem". I think we are wrong here. I think "many" people for some reason don't update their windows on a regular basis. The reasons for this could be many and is not a part of this post.
To have all my users have the best experience, I wanted to find a way where it worked no mather if you have an updated or an old version of IE. I googled it and found some samples, but non of them worked out of the box, and dome didn't had a proper fall back handling.
Therefore I created my own. All you need for this is the HTML and the Silverlight.js file, which is located similar to this: C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Tools
[code:html]
<!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>
<title></title>
<script src="Silverlight.js" type="text/javascript"></script>
</head>
<body>
<div id="SilverlightContent">
Silverlight not installed...please do so :)
</div>
<script language="javascript" type="text/javascript">
var parentElement = document.getElementById('SilverlightContent');
var altHTML = parentElement.innerHTML;
Silverlight.createObject(
"ClientBin/DeployTest.xap", // Source property value.
parentElement, // DOM reference to hosting DIV tag.
"myPlugin", // Unique plug-in ID value.
{ // Plug-in properties.
width:'1024', // Width of rectangular region of plug-in in pixels.
height:'530', // Height of rectangular region of plug-in in pixels.
//background:'white', // Background color of plug-in.
//isWindowless:'false', // Determines whether to display plug-in in windowless mode.
//framerate:'24', // MaxFrameRate property value.
version:'2.0', // Silverlight version.
alt: altHTML // Alternate HTML to display if Silveright is not installed
},
{
onError:null, // OnError property value -- event-handler function name.
onLoad:null // OnLoad property value -- event-handler function name.
},
null, // initParams -- user-settable string for information passing.
null);
</script>
</body>
/html>
[/code]
Enjoy!
How many have Silverlight installed?
Silverlight 2.0 final release is getting closer and I'm looking forward to see how fast Silverlight 2.0 will be installed on computers all over the world. A good place to get these informations is at www.riastats.com.
At the moment Silverlight 2.0 (Beta 2) is installed on 6.05% of the computers in the world(aprox). That's not many, but Silverlight 2.0 is also only in beta. Let see how the stats looks after some months of the final release of Silverlight 2.0 when some of the big sites really start to adopt this new technology.
Silverlight 2 Release Candidate Now Available
Take a look at ScottGu's blog for more info. Getting real close now.
http://weblogs.asp.net/scottgu/archive/2008/09/25/silverlight-2-release-candidate-now-available.aspx