Geeks With Blogs

News


Timmy Kokke's Blog

↑ Grab this Headline Animator

Timmy Kokke at Blogged
Timmy Kokke …just sorting my bubbles… Silverlight
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 ......

Posted On Thursday, September 30, 2010 7:41 PM

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. ......

Posted On Monday, August 30, 2010 11:01 PM

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 ......

Posted On Friday, August 27, 2010 10:39 PM

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 ......

Posted On Tuesday, August 24, 2010 10:31 PM

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 ......

Posted On Tuesday, August 17, 2010 11:14 PM

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 ......

Posted On Monday, August 16, 2010 9:10 PM

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 ......

Posted On Friday, July 30, 2010 11:21 PM

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 ......

Posted On Friday, July 9, 2010 5:14 PM

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 ......

Posted On Wednesday, July 7, 2010 7:37 PM

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 ......

Posted On Tuesday, June 29, 2010 11:58 PM

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 ......

Posted On Monday, June 28, 2010 11:50 AM

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 ......

Posted On Friday, June 25, 2010 9:55 PM

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. ......

Posted On Wednesday, June 16, 2010 8:29 AM

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: ......

Posted On Friday, May 28, 2010 4:04 PM

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 ......

Posted On Friday, May 21, 2010 12:00 AM

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 ......

Posted On Thursday, April 22, 2010 11:24 PM

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 ......

Posted On Monday, April 12, 2010 12:34 AM

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 ......

Posted On Sunday, March 14, 2010 11:27 PM

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 ......

Posted On Wednesday, February 10, 2010 9:46 PM

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... ......

Posted On Monday, November 23, 2009 11:16 PM

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, ......

Posted On Sunday, November 22, 2009 2:19 PM

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 ......

Posted On Thursday, November 5, 2009 9:50 PM

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 ......

Posted On Monday, November 2, 2009 3:08 PM

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... ......

Posted On Wednesday, October 14, 2009 11:15 AM

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 ......

Posted On Tuesday, September 29, 2009 11:14 PM

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 ......

Posted On Monday, September 28, 2009 3:53 PM

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. ......

Posted On Wednesday, September 9, 2009 5:23 PM

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 ......

Posted On Thursday, September 3, 2009 5:27 PM

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 ......

Posted On Tuesday, July 21, 2009 8:11 PM

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 ......

Posted On Tuesday, July 14, 2009 9:18 AM

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™ ......

Posted On Thursday, July 9, 2009 6:37 AM

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. ......

Posted On Tuesday, July 7, 2009 7:04 PM

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 ......

Posted On Tuesday, June 30, 2009 6:10 AM

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 ......

Posted On Monday, June 29, 2009 8:33 AM

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 ......

Posted On Tuesday, June 23, 2009 12:17 AM

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 ......

Posted On Tuesday, June 16, 2009 7:08 PM

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. ......

Posted On Tuesday, June 16, 2009 7:52 AM

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, ......

Posted On Tuesday, June 9, 2009 10:11 AM

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 ......

Posted On Tuesday, April 14, 2009 11:39 AM

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 ......

Posted On Wednesday, April 1, 2009 11:02 PM

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 ......

Posted On Wednesday, March 18, 2009 4:48 PM

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 ......

Posted On Tuesday, March 17, 2009 3:24 AM

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 ......

Posted On Monday, December 22, 2008 11:33 AM

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, ......

Posted On Tuesday, December 16, 2008 10:37 AM

Copyright © Timmy Kokke | Powered by: GeeksWithBlogs.net