Async programming is key today. Making the user wait while you process data is passé ,not acceptable to the modern user and against all usability principles!! But the user does want to be informed when the processing is over and what was the outcome! So how do we inform the user from asynchronous method? A […]
Category Archives: WPF
Bulb Flash:- Some practical WPF MVVMLight tips!
One of our major projects recently used WPF 4.0 with MVVM pattern.We used the MVVM Light Toolkit for implementing the MVVM Pattern. The MVVM Light Toolkit definitely has a lot to offer to make your life easier but the documentation is not exemplary! Few things we learnt down the road as we came to a […]
Code for Keeps:- Store Retrieve image to/from Database
One of our early blogs was about extracting images from databases, websites and showing them on the screen. The blog(see it here) dealt with a) Retrieving images from the www b) Retrieving images from the database when retrieved as a binary. We realized there are some more scenarios to take care of here c) Save […]
WPF/Silverlight Canvas Vs Single Cell Grid
I’ve often been asked the question of when should we use a Canvas and when a Single Celled Grid…. This is a snapshot of the an MSDN article . Our inputs are marked as [Cennest:]. The source can be read at http://msdn.microsoft.com/en-us/magazine/ff646962.aspx A single-cell Grid is just like a regular Grid except without any row […]
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 […]
Multiple Level Master Detail Binding in WPF(XAML)
I’ve seen a couple of developers fumble with a LOT of Code when asked to implement a 2-3 level Master –detail form. So we put together a bit of code to showcase how easily it can be done with virtually no code (alteast no code behind!!) in WPF Consider the following problem statement: Create a […]
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 […]
(WPF ListView/ TreeView)Get rid of that default (blue) selection colour!!
This next blog covers a very trivial but important problem. Important because i think almost everyone would want to override this default behavior of WPF and trivial because the solution is actually pretty simple.Atleast its simple now that i know it. It wasn’t so simple for me earlier though;-) For this blog i feel pictorial […]
Structured Navigation Using Page Functions!
One of the new features WPF has given us windows programmers is the “Page” as the supposed equivalent of the html web page..information can now flow from one page to another as in a website by linking one page to another via a hyperlink .This gives users the familiar web experience(and looks much better than […]