Archive for the ‘Silverlight’ Category

WPF logging control

In almost every application you need/want some form of logging. I’ve made a sample solution that shows a usercontrol that visually displays the output. The text that is being logged is also written to a text file. Some main features: supports multithreading allows filtering on different trace levels possibility to show timestamp clear output Check [...]

Binding to Enums in WPF

A very common scenario: you want to bind an itemsSource like a comboBox to an enumeration. At first sight, this is harder to implement than you would imagine. When you google (or Bing) for solutions, you find a lot of examples that use a separate ObjectDataProvider that calls the GetValues() method on the specified enum [...]

Output the changed property in the databinding

A previous post of mine shows several options how to debug wpf bindings. Here’s another way to output the changed property (together with its new value). We’re using a custom PropertyChangedCallback that outputs some info. public static readonly DependencyProperty SomePropertyProperty =  DependencyProperty.Register(“SomeProperty”, typeof(string), typeof(Window1), new UIPropertyMetadata(BindingDebugger())); public static PropertyChangedCallback BindingDebugger() { // output the debugging info } [...]

WPF vs Silverlight

Last week, I was giving a Silverlight training in the beautiful Bergen (Norway). I have WPF experience, but I was still struggling with some demo’s because of its differences with Silverlight. Silverlight is supposed to be a subset of WPF but that’s not the case (yet). Silverlight even has functionalities that are not in WPF [...]

10 Silverlight tips and tricks

I attended the Dutch Devdays, and there was a great session of Gill Cleeren on Silverlight. He explained several tips and tricks, which are definitely worth checking out!   The tips are: •Creating a custom install experience•ASP.NET Membership Integration•Double clickety-click•Debugging services•Duplex services•Silverlight and SEO•Virtual Earth in Silverlight•Drag’n’drop and hit testing•Model-View-ViewModel•Async unit tests

Silverlight decompilation

When you build a Silverlight application, you compile your source files (inc. XAML and embedded resources) into assemblies (dlls). Those assemblies (plus any 3rd party ones plus MS assemblies that are not part of Silverlight) are then collected together along with a manifest into a packaged archive – or in other words, a ZIP file. [...]

Silverlight and WPF

With the introduction of Silverlight (SL), Microsoft promised us a we could leverage our existing skills to create RIA's (rich internet application). This means SL should be a subset of WPF, which is a big deal! So I was scared when I watched Ian Ellison-Taylor's session about sharing skills between both of them. He told [...]

Silverlight 1.1 tutorials

Hier een blog met allerlei tutorials over de managed Silverlight versie. Er word veel gepost, dus houd de site in de gaten.