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:

WPF


There are 20 entries for the tag WPF

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

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

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

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

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

Building a “real” extension for Expression Blend

.Last time I showed you how to get started building extensions for Expression Blend. Lets build a useful extension this time and go a bit deeper into Blend. Source of project => here Compiled dll => here (extract into /extensions folder of Expression Blend) The Extension When working on large Xaml files in Blend it’s often hard to find a specific control in the "Objects and Timeline Pane”. An extension that searches the active document and presents all elements that satisfy the query would...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Building extensions for Expression Blend 4 using MEF

Introduction Although it was possible to write extensions for Expression Blend and Expression Design, it wasn’t very easy and out of the box only one addin could be used. With Expression Blend 4 it is possible to write extensions using MEF, the Managed Extensibility Framework. Until today there’s no documentation on how to build these extensions, so look thru the code with Reflector is something you’ll have to do very often. Because Blend and Design are build using WPF searching the visual tree with...
  • 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

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

Monitoring routed events in WPF

A few days ago I wanted to monitor all routed events fired in my application. Because I am running an XBAP application inside a browser windows, Snoop wasn’t very helpful (it usually is). Because all routed events are basically the same, you can handle them all with one singe event handler. Using the EventManger it is possible to get all routed events and register a class handler for every one of them. The code below is a stripped down version of the code I’ve got implemented. When loaded, it gets...
  • 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

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

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

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

Image generation in PHP using WPF

Introduction In an earlier article I explained how to use .NET assemblies in php. This concept is the basis of the image generation as used in my entry for the WinPHP challenge. Because the user is in control of selection colors, all images used throughout the weblog need to be generated. Php provides a number of graphical functions, but none is capable of creating rounded corners an gradients with ease. Everything has to be done by hand. WPF on the other hand uses xaml which supports everything...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Scratchcard in WPF

Everybody knows those lottery games where you have to scratch a card to reveal some symbols that tell you if you’ve won money. Here’s an easy way to achieve the same effect in WPF, using xaml only. Wpf has a control that let’s the user draw on it’s surface, the InkCanvas. By placing this exactly behind an image it's invisble to the user, but can be used. To make sure all mouse-clicks will come thru to the InkCanvas, the IsHitTestVisible property on the Image has to be set to false. Now, by adding...
  • 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