Home Contact

Timmy Kokke

…just sorting my bubbles…

News




Timmy Kokke's Blog

↑ Grab this Headline Animator

Timmy Kokke at Blogged

Twitter












Tag Cloud


Archives

Post Categories

Image Galleries

Silverlight

Syndication:

Silverlight


There are 59 entries for the tag Silverlight

Expression Blend Tips and Tricks at Mix11?

I was a bit surprised when I got an email from the Mix11 team congratulating me on my session proposal making the first cut. So now it’s up to the you to vote on your favorite sessions. After voting for mine, you can vote on 9 other sessions . The entire list can be found here. The voting period ends on February 4, 2011. My session will be focused on Expression Blend. I’ll be talking about the Visual State Manager, Sample Data and Behaviors. And I show some helpful features along way. So go and vote...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

NuGet

You are reading an old version of my weblog. Please update your bookmarks to http://www.timmykokke.com If you often use open source libraries you probably have a large library with various tools, like I do. NuGet is an extension for visual studio that enables you to install, uninstall and upgrade open source packages into your application very easily. Say for example you want to use MvvmLight or Ninject in your project, with NuGet it’s nothing more that tell it to add the package to your project....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Using Visual States in custom controls in Silverlight

You are reading an old version of my weblog. Please update your bookmarks to http://www.timmykokke.com Intro Visual States are an easy way to change the looks of your controls based on certain states. This state can be something like a mouse hover, some invalid state or any state you need in a control. For this tutorial I chose a traffic light control that can be one of four states. Green, Orange, Red and Inconclusive (blinking orange). In the end I show you how to use behaviors on buttons to set...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Custom Assets folder for Expression Blend

You are reading an old version of my weblog. Please update your bookmarks to http://www.timmykokke.com In the projects I’m doing I often use controls from my own library or use control from third party vendors. I don’t like the process of doing this. Rather I would like to have the libraries available inside Expression Blend, like the controls that came with the Silverlight Toolkit or Blend itself. One way is to add the custom assemblies containing the controls to one the folders in your Program...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Gradient Importer for Expression Blend

Intro Adobe Photoshop offers people the possibility to share gradients through .GRD files. These files can be found very easily on various sites. This extension for Expression Blend allows you to import these files and use them in your Silverlight or WPF projects. The extension makes use of some changes to Expression Blend made in SP1. You must have Blend SP1 installed to use this extension. Know limitations The extension isn’t finished yet. I haven’t worked out all the bugs yet, but this first release...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

PivotViewer and MVVM

PivotViewer series Building your first PivotViewer application Runtime PivotViewer collection creation PivotViewer - Working with Facets Handling PivotViewer events PivotViewer - Custom actions PivotViewer and MVVM Intro The MVVM patterns is a commonly used pattern in Silverlight. Because of databinding MVVM suits perfectly for WPF and Silverlight. But use it only if appropriate. Often the pattern is used when it isn’t necessary. The usage of any pattern should be a helping tool, not an enforced...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

PivotViewer – Custom Actions

PivotViewer series Building your first PivotViewer application Runtime PivotViewer collection creation PivotViewer - Working with Facets Handling PivotViewer events PivotViewer - Custom actions PivotViewer and MVVM Intro In this tutorial about the Silverlight PivotViewer control I would like to explain how to make use of Custom Actions. Small labels are placed on top of items in the viewer and clicking them will trigger an event. --> The only downside of these actions is that they aren’t fully implemented....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Handling PivotViewer events

PivotViewer series Building your first PivotViewer application Runtime PivotViewer collection creation PivotViewer - Working with Facets Handling PivotViewer events PivotViewer - Custom actions PivotViewer and MVVM Intro Today I would like to go into a little detail about the events used in the PivotViewer control for Silverlight. If you haven’t worked with the PivotViewer yet you might want to read the getting started tutorial I wrote earlier first. CollectionLoadingCompleted The CollectionLoadingCompleted...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

PivotViewer – Working with Facets

PivotViewer series Building your first PivotViewer application Runtime PivotViewer collection creation PivotViewer - Working with Facets Handling PivotViewer events PivotViewer - Custom actions PivotViewer and MVVM Intro In this next tutorial about the Silverlight PivotViewer control I would like to give a little more depth on Facets. What are facets, and how are they used in runtime generation of collections using the PivotServerTools library. This tutorial continues on techniques from last tutorial...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Runtime PivotViewer collection creation

PivotViewer series Building your first PivotViewer application Runtime PivotViewer collection creation PivotViewer - Working with Facets Handling PivotViewer events PivotViewer - Custom actions PivotViewer and MVVM Intro Today I would like to show you how you can consume web services in the PivotViewer control for Silverlight and build a collection at runtime. This tutorial is based on examples found on www.getpivot.com and the getting started tutorial I posted earlier this week. This tutorial used...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Building your first PivotViewer application

PivotViewer series Building your first PivotViewer application Runtime PivotViewer collection creation PivotViewer - Working with Facets Handling PivotViewer events PivotViewer - Custom actions PivotViewer and MVVM Intro If you haven’t had a chance to look at the new PivotViewer control for Silverlight, have a look here or here. The PivotViewer enables visitor of you website to search large amounts of data very easily. The control takes a lot work out of your hands. Basically you tell it to load...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Adding options in Expression Blend extensions

Intro Often extensions for Expression Blend need to store some global variables. Why not use the mechanisms Blend itself offers? I’d like to show you how to add a custom options page to the options dialog. I’ve started the example project by creating a new C# WPF Custom Control Library project and naming it ExtendingBlendOptionsTutorial. The details on how to create a new Blend Extension can be found here. You need to make sure the Microsoft.Expression.Extens... and Microsoft.Expression.Framework...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Silverlight Databound Application Project Template

Intro One of the new additions in Expression Blend 4 is the Silverlight Databound Application Project template. I use that often when starting a new MVVM project. The template creates View and ViewModel folders and provides a good starting point for Model-View-ViewModel applications. The only downside is that this template is only available in Expression Blend and not in Visual Studio 2010. I’ve exported the project to a Visual Studio template to be able to use it in VS2010 too. Download The template...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Window Closing Event

Intro When running Silverlight 4 out of the browser it could become handy to know that the application is being closed. In case of my open source demo application SilverAmp (http://SilverAmp.CodePlex.... I wanted to notify the user the application is being closed when music is still playing. Catching the event In Silverlight 4 a new event has been added to the System.Window class. This event is raised when the application is being closed. Closed in any way: by the user hitting F4; by the user clicking...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

XamlResource.com

Since today XamlResource.com is officially in beta. Its purpose is to create a platform to find and share resources for Silverlight and WPF, resources in the form of Xaml. Have a look around and if you run into issues, please let us know at xaml@hotmail.nl. Beta 1: In Beta 1 only a few of the final categories are supported: Colors; Resources of type SolidColorBrush Gradients; Resources of type GradientBrush Color sets; 2 to 5 resources of type SolidColorBrush Vectors; Resources of type StreamGeometry...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Custom Window Chrome

Intro Today I would like to explain something about customizing the window chrome in Silverlight 4 OOB. For an example of customizing the window have a look at my open source demo application SilverAmp which is available on http://SilverAmp.CodePlex.com. Choosing style Running the application without the default window chrome requires running out-of-browser with elevated trust. How to set elevated trust is explained in this earlier post. To set the window style, go to the Out-Of-Browser settings...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Elevated Trust

Intro This is the second article in a series of small articles about what is new in Silverlight 4 and Expression Blend 4. The series is build around a open source demo application SilverAmp which is available on http://SilverAmp.CodePlex.com. Setting elevated trust A number of new features in Silverlight 4 require more permission, to gain access to the local file system for example. The elevated trust feature is only in available when running outside the browser. To enable elevated trust right click...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

MVVM Project and Item Templates

Intro This is the first in a series of small articles about what is new in Silverlight 4 and Expression Blend 4. The series is build around a open source demo application SilverAmp which is available on http://SilverAmp.CodePlex.com. MVVM Project and Item Templates Expression Blend has got a new project template to get started with a Model-View-ViewModel project easily. The template provides you with a View and a ViewModel bound together. It also adds the ViewModel to the SampleData of your project....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Expression Studio 4 Community Launch Event

Event On June 7th Expression Studio 4 will be launched at the Internet Week in New York. One day later, on June 8th, the Dutch Silverlight and Expression User Group SIXIN organizes the Dutch Community Launch in collaboration with Microsoft and Centric at Centric's office in IJsselstein. To celebrate the 4 Expression release we have two interesting speakers. In addition, we give three packages Expression Studio and more great gifts away. Program The preliminary program for the evening is as follows:...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Code & Slides – SDE – What’s new in Silverlight 4

Last Tuesday the Software Developers Network – SDN organized another SDE. I’ve had the opportunity to present a session about Silverlight 4. I talked about lots of new features in Silverlight 4 and Expression Blend 4, focused on the Out-Of-Browser features. The slides of my presentation can be downloaded here. In my presentation I demonstrated a couple of features from my new pet project “SilverAmp”. This project is based on the legendary WinAmp, but made entirely in Silverlight. I use it to try...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Changing CSS with jQuery syntax in Silverlight using jLight

Lately I’ve ran into situations where I had to change elements or had to request a value in the DOM from Silverlight. jLight, which was introduced in an earlier article, can help with that. jQuery offers great ways to change CSS during runtime. Silverlight can access the DOM, but it isn’t as easy as jQuery. All examples shown in this article can be looked at in this online demo. The code can be downloaded here. Part 1: The easy stuff Selecting and changing properties is pretty straight forward. Setting...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Introducing jLight – Talking to the DOM using Silverlight and jQuery.

Introduction With the recent news about Silverlight on the Windows Phone and all the great Out-Of-Browser features in the upcoming Silverlight 4 you almost forget Silverlight is a browser plugin. It most often runs in a web browser and often as a control. In many cases you need to communicate with the browser to get information about textboxes, events or details about the browser itself. To do this you can use JavaScript from Silverlight. Although Silverlight works the same on every browser, JavaScript...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Validation in Silverlight

Getting started with the basics Validation in Silverlight can get very complex pretty easy. The DataGrid control is the only control that does data validation automatically, but often you want to validate your own entry form. Values a user may enter in this form can be restricted by the customer and have to fit an exact fit to a list of requirements or you just want to prevent problems when saving the data to the database. Showing a message to the user when a value is entered is pretty straight forward...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

The Silverlight 3D Controls project

Introduction The last months I’ve been playing with the ideas for a few Silverlight Controls using 3D effects. Movement, animation and Depth in various controls for various purposes. The entire project, including the sourcecode and demos, will be available on CodePlex: http://SL3DControls.codeple... DepthCanvas The DepthCanvas is the first control in the collection. The DepthCanvas stacks layers on top of each other, and rotates the whole slightly when the mouse moves. This adds a feel of depth...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #13 - System.Threading.SynchronizationContext

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. When writing the demo for the code-camp I ran into issues getting back on the UI thread after calling a webservice. The call to the webservice was made from the UI thread, but the callback was made on a different thread. The System.Threading.Synchroniz...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Code and Slides – Dutch Code Camp 2009

Code Camp Thanks! Thanks everyone for coming to my session about Modular Silverlight applications with Prism at the third Dutch Code Camp last Saturday! I hope you learned something useful from it. Special thanks to SDN, Stichting dotNed en VBcentral for organizing this event. Code & Slides The slides can be downloaded here. But more important, the source for the demo can be found over here. Links Here are a few links mentioned in the presentation: Silverlight en Expression insiders user group,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Silverlight 3 downloads

Below is a list of downloads for Silverlight 3. It includes all necessary downloads together. The majority are new updates and releases since the Silverlight 3 release. A few are older releases but should work with Silverlight 3. I’ll try to keep the list up to date when new releases follow. If you know a tool, library or framework for Silverlight that isn’t on the list, please let now by commenting, mailing or thru twitter. Development/Design Silverlight 3 RTW (3.0.40818.0) Microsoft® Silverlight™...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

StarterKits for Silverlight and Expression

StarterKits for Silverlight and the Expression Tools Lately I’ve seen some tweets passing by with links to various StarterKits. I’ve decided to "Bing” around a little and find out what these people were talking about. There are quite a few StarterKits available on various topics. I’ve listed a few below, old and new ones, that I find relevant to my fields of interest: Silverlight and the Expression Blend, Design and Web. Building a Zune Website with Expression Blend 3 StarterKit In this lab you will...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Silverlight and Expression Insiders

A few months ago I received an email from Rob Houweling explaining his ideas for a new Dutch usergroup, focused on Silverlight, Expression Design and Expression Blend. I’ve had been playing with the idea of a Silverlight usergroup myself at the time, so I didn’t have to think very long about joining. After meeting and numerous emails between six silverlight enthusiasts(Rob Houweling, Mark Monster, Koen Zwikstra, Antoni Dol, Eric van den Hoek and me, Timmy Kokke) the plans are worked out and it’s...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Twirling smoke effect in Expression Design

For a long time I’ve been wondering how to create a smoke effect like used in the Silverlight Logo for example. There are some techniques to render smoke by using 3D modeling software. But creating this effect in a tool like Expression Design is easier than it looks. Below is an example of what the end result might look like. After opening expression Design start by creating a new document.The size of the document isn’t very important as long as you have a bit of space to play with some paths, so...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #12 – System.Windows.Browser.HttpUtility

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. This time I would like a little helper class to your attention. When working in a web environment ever so often you need to encode/decode a Url or a piece of Html. In Silverlight you need to look for the System.Windows.Browser.Http...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Retro-lines in Expression Design

Today I would like to show you how to create lines like above in Expression Design. After opening Expression Design, start by creating a new .design document. Now, zoom in a bit to the upper left corner of the document. Draw a small rectangle and give it some easy numbers. Move the rectangle to 10, 10 and change it width and height to 10 too. Change the stroke of the rectangle to none, and change the fill color to black. Copy the black rectangle and move it to position 10,20. Change its color to...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #11 - SyndicationFeed

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. Occasionally it’s required to use an Rss or an Atom feed in your projects. Just to show some news, or the latest update on the stock exchange. Working with these, often large, chucks of xml directly can be a pain. In Silverlight...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

DataTemplateSelector in Silverlight

Unlike WPF, Silverlight doesn't contain a DataTemplateSelector. A DataTemplateSelector is used to select a data template based on the data-bound element and the data object. But, it isn't hard to build your own. Start by adding a class to the solution and call it something like “DataTemplateSelector”. Inherit this class from System.Windows.Controls.Con... The ContentControl class has a property for a data template and a property for content, which you can use to data-bind to. Next, create...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #10 System.Windows.Documents.Run

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. When showing text to a user it's often necessary to show a few words in Italic or Bold. To do this, use the System.Windows.Documents.Run class. This class provides a small bit of HTML - like features inside a Silverlight TextBlock....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #9 - System.Windows.Analytics

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. When developing applications, especially graphic intensive web applications you want to monitor the performance when running. The System.Windows.Analytics class can help you with that. The class has no methods of any significance...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #8 – Accessing local files

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. Although the Silverlight security model prevents access to the local file system, it is very easy to open and save or import and export files to and from the file system. It is not possible to gain any information about the local...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #7 - System.Windows.Messaging

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. Most often Silverlight applications take up the whole screen and the page that is hosting the application contains only one control. It is possible to split you application into smaller controls. This can be valuable when you are...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

9 little new things in Expression Blend 3

When working on some projects and articles in Expression Blend 3 I noticed a few differences with Blend 2 right away. Here are 9 improvements and new features I really like or enjoy having now. 1. Expression Blend now shows the size of your controls even when the width and height are set to Auto: 2. The assets are placed in a panel now. Although the “old” way of working with asses is still available, this new panel can be left open. Beside that, the assets are grouped in different ways in a tree,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Silverlight 3 downloads

Below is a list of downloads for Silverlight 3. It includes all necessary downloads together. The majority are new updates and releases since the Silverlight 3 release. A few are older releases but should work with Silverlight 3. I’ll try to keep the list up to date when new releases follow. If you know a tool, library or framework for Silverlight that isn’t on the list, please let now by commenting, mailing or thru twitter. Development/Design Silverlight 3 RTW (3.0.40818.0) Microsoft® Silverlight™...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #6 - System.Windows.EventTrigger

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. There are situations when you would like to start an animation as soon as your application is loaded. The EventTrigger class is what you need in that case. You may know this class from WPF, but the Silverlight version is very limited....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #5 – System.Windows.ApplicationServiceContext

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. When running Silverlight outside the browser, there’s the possibility that the computer that is running the applications is disconnected. This is where the System.Windows.ApplicationS... class comes in. This class represents...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Styling a TreeView in Silverlight 3 and Blend 3

Introduction Today I would like to show you how to style a TreeView control in Silverlight 3 using Expression Blend 3. The TreeView is a control to visualize hierarchical data structures. If you haven’t got Silverlight 3 and Blend 3, you can find all downloads for Silverlight 3 and Blend 3 here. The TreeView control is available in WPF natively and styling is only a small bit different than in Silverlight. I try to explain one way of doing this and there are others. If you have any questions what...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #4 – System.Windows.ApplicationIdentity

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. One of the great new features of Silverlight 3 is the so called “Out of Browser” support. This means you can run your application without the browser, but still using the browser secure sandbox. The ApplicationIdentity class can...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #2 – System.Json

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. The System.Json namespace provides support for Javascript Object Notation or JSON. By using the classes in this namespace you are able to use Json objects in your C# or VB code. These object are often used in JavaScript and to...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #3 - System.Windows.Input.FocusManager

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. There are situations where you want to know which UI element has focus. One way of doing this is handling the GotFocus and LostFocus events. These events are only raised when an element gets or looses focus, and are handled asynchronously....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Microsoft Expression Blend Essentials

I ran into this series of videos when exploring Microsoft Showcase this morning. If you’re just starting with Expression Blend or if are more experienced, these sessions can provide you with much useful information. There are 7 part, all listed below. If you want to learn more about the Expression Products or any other Microsoft product, just browse and Bing around Microsoft Showcase. Microsoft Expression Blend Essentials (1/7): Projects and Hierarchies Microsoft Expression Blend Essentials (2/7):...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverBullet #1 – System.Environment

I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. This first SilverBullet™ I would like to give you is the Environment class. It’s in the System namespace and provides information about the environment your application is running in. Use it to get information about the system,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

BlogSnor Tutorials

The last thing I wanted to do for my WinPHP contest entry BlogSnor is publishing some kind of manual. Instead of walk you thru in text and images, I would like to show you a few videos. The first video shows the registration process of a new user. He comes to the site and hits register. He logs in with his Live ID and is redirected back to BlogSnor where he has to fill out a form. After submitting this his account awaits activation by one of the administrators. The second video shows the next step...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

WinPHP challenge recap

Introduction The WinPHP challenge is running towards it’s closing time. Only a few days before entering I came with the idea to enter the contest. I had to put a lot of my spare time into it, but it was worth it. I learned a lot from exploring the realm of php. It’s fun to work in a language I normally do not work in. And to find ways to implement some thoughts that have been on my mind for a while. Here’s the story about the what, the where and the how of BlogSnor, my entry for the WinPHP challenge....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Using Silverlight Ria Services to overcome Cross Domain issues with RSS

Introduction A lot of sites use Rss feeds to provide others with information. For security reason Silverlight doesn’t allow cross domain calls. With your own servers you can overcome this by specifying access via a crossdomain.xml file. In most cases you want to read a Rss feed that is not on your domain, and it is not possible to add or change the crossdomain.xml file. Because Silverlight can communicate with Asp.NET, and Asp.NET can access almost any Rss feed, that would be a great option. The...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Creating, Binding and Styling a Bubble Chart

The Bubble Chart is part of the Silverlight toolkit and is available for Silverlight 2 and Silverlight 3 at http://silverlight.codeplex... This chart uses the size of the “bubbles” to display more data. For this article I used the Silverlight 3 version of the toolkit and the newly released Expression Blend 3 and Silverlight 3. Creating the Chart Start by creating a new Silverlight 3 project in Expression Blend. Add a reference to the Silverlight toolkit by going to Project in the menu and click...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Getting started with Silverlight 3

(Note: If you are looking for info on the new Silverlight 3 release(July 10th 2009) goto here) Just this morning I saw the download locations on twitter. If you haven’t found those, here’s how to get your first silverlight 3 app running in notime. First, got to the Microsoft® Silverlight™ 3 Tools Beta 1 for Visual Studio 2008 SP1 download location and click the download button. It’s a 31.1Mb download which includes everything you need to get going. Now, run the installer and click thru. After that’s...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

A Glass Orb Button in Silverlight

A nice thing about Silverlight is the ability to redesign almost everything. Today I would like to show you how to make a Glass Orb style button in Expression Blend. The example below shows the result. You can start in any Silverlight 2 project, for the sake of simplicity I started an empty project. Just add a standard silverlight button on the panel. The glass button style we’re about to create looks best on a square button, thus give the button a width and height of the same value, like 64. To...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverRubix: The Details

Introduction: When I read about the Mix09 10k Challenge I immediately thought of doing something with 3d. I’ve started programming simple, rotating 3d applications years ago, in the MS-DOS era. In those days, basic 3d was used a lot in demos and intros. And, because Silverlight doesn’t support 3d natively (yet), I made it my own challenge to see if I use my experience with 3d to fit a 3d engine in 10k. Instead of using the original Rubik’s Cube colors, I chose to use the Mix09 colors. The colors...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SilverRubix - 3D Rubik’s Cube for Mix09 10k Challenge

It’s done! Finally! My entry for the Mix09 10k Challenge is submitted. Drag your mouse on the area surrounding the cube to rotate the entire cube. Click the cube itself to turn the sides of the cube. From the moment I got notice of this challenge I thought of doing something in 3D. I decided to build a Rubik’s Cube. I started out with the classes to make the 3D possible. To do this, I made a Vector3D class for position all vertices in the 3D world and a Matrix3D class for doing the rotations. Next...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Shrinking code for the Mix09 10k challenge

Before I share the details of my entry for the challenge I’ve got some tips for you to help you shrink the size your code: Xaml isn’t needed, it only takes up a lot of space. Read this article on using Silverlight without Xaml. Returns, tabs and spaces are bytes and increase the size of your file. Almost all may be removed. Every space next to punctuations may be removed, even next to keywords. Define arrays like this: int[]c=new{1,2,3,4,5}; Without any spaces. Note, the “int” that usualy goes between...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Getting items of a type from a collection using LINQ

There are a lot of situations in Silverlight and WPF where you would like to get a list of items from a collection of a certain type. For example all textboxes in a Grid, or all customer records from a ListView. LINQ provides us with an extension method to do this very easily, the OfType<T>() extension on IEnumerable: public static IEnumerable<TResult> OfType<TResult>( this IEnumerable source ) Let me explain the use of this method thru some examples. Say you have a grid with some...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Sending queryparameters to Silverlight

Ofter there are situations where it’s needed to pass parameters to Silverlight. For example a webshop where you would like to display a product, or a Twitter application where you would like to show information about a certain user. The Silververlight control has an string property InitParameters. When passing any string to this property it can be read by the Silverlight application. Where the query parameters property in Asp is a string, in Silverlight this is changed into an IDictionary<string,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati