Category: Silverlight

Combining Silverlight Navigation Framework and Prism to create MVVM Applications – Introduction

This is introductory post for a series of posts where i will try to tackle the holy grail of MVVM applications - Navigation. To do this I will be using Prism from Microsoft's Patterns and Practices team (Silverlight version - latest drop) combined with Silverlight Navigation Framework and i will build small navigation framework on top of that...

Custom Silverlight TextBox control that immediately updates DataBound Text property in TwoWay binding

Standard Silverlight TextBox control is very useful but has one strange behavior: if you use TwoWay data binding and bind some property to controls Text property, when users type text into the control, this change is not propagated to the bound property until the control loses its focus. This can be very annoying if you have MVVM application and you have some kind of real-time filter that needs to update some data as-you-type. Problem is that TextBox control does not call BindingExpression.UpdateSource when its Text property is changed so we have to do that manually in order to fix this…

Silverlight MergedDictionaries – using styles and resources from Class Libraries

If you were developing larger Silverlight/WPF applications and trying to keep things like styles, control templates and other resources organized it can become really hard. Prior to Silverlight 3 it was hell to be honest 😀 You had to scatter resources all around your application, on control level and put global ones in App.xaml and soon it would all grow beyond control. But then nice people from Microsoft introduced lovely little feature called MergedDictionaries that allows you to combine the resources from different places in your application. The beauty of this simple technique is that you can use resources from…