Tag Archives: WPF

Commanding within DataTemplates in MVVM!

A quick post about setting commands within DataTemplates when using the MVVM pattern! When you are inside a DataTemplate the DataContext is changed to the  the current item, so to access the command you will need to use the “relative source” Something like <Button Content=”Delete” Width=”Auto” Command=”{Binding DataContext.RemoveCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}” CommandParameter=”{Binding}”> Hope this […]

Improving WPF/Silverlight- WCF Communication!

While working on a recent assignment related to establishing and optimizing duplex communication with Silverlight and WCF,we learnt quite a lot of new concepts like HttpPollingDuplex binding  with multiple messages mode Http Long Polling designs etc. While most of these concepts were new we did get a bulb flash on how to improve basic WPF/Silverlight […]

Creating An “Extensible” Consolidated Social Networking Platform in WPF using MEF

One of my recent projects was on Social Networking where we worked with various social networking sites like WL, Facebook, Delicious, Twitter ,Picassa, Flickr etc to bring them to a common platform for a user. It was a pretty interesting application and i’ll try to demonstrate multiple WPF patterns we implemented in it. One was […]