After a long time after my first microsoft certification,70-536,.NET Framework - Application Development Foundation today i have taken the certification for WPF, Microsoft .NET Framework 3.5, Windows Presentation Foundation Application Development,70-502.
    This one is easy for anyone who has some hands on experience in WPF.One has to be familiar with the different panels and layout,Binding,Styles and Templates.Other than that some knowledge on click once deployment would also be of help.
    The best way to prepare for this,would be to have a visual studio up and running and try out different things on WPF.
    I would suggest the books Sams WPF Unleashed and Pro WPF to start with.Both are really helpful.Apart from that check out the various blogs and forums out there.Just google and you would find a hell lot of those,just like you found this one:)
    Just gonna relax the day ahead after the hard earned certification :):)

    Hi, Everybody will be using Brushes,which implements a set of predefined SolidColrBrush objects,to choose various colors. Sometimes you may want to get a list of all these brushes up in your application,so that the user can select the color of his/her choice. To get the list of colors from Brushes you can use the following piece of code

    Dim dictBrushes As New Dictionary(Of String, SolidColorBrush)
    For Each objPropertyInfo As PropertyInfo In GetType(Brushes).GetProperties
    	If (objPropertyInfo.PropertyType Is GetType(SolidColorBrush)) Then
     		dictBrushes.Add(objPropertyInfo.Name,objPropertyInfo.GetValue(Nothing, Nothing)) 
    	End If 

    Here dictBrushes will give what you want. You can use this in your view,bind to a combobox if you want and show the possible selections of color

    Hope it helps :)

    Recently I had a requirement when developing an application,where i needed a listbox which was to be disabled but yet can be scrolled,so that all the contents in it was visible.Applying the property,IsEnabled=False makes the whole listbox disabled even disabling the scroll. I just found out a way around this.I created a custom listbox(MyScrollableListbox) with a property IsItemsEnabled.Setting this property to true,gives the normal listbox behaviour.When set to false only the ItemsPresenter of the listbox is disabled,so that scrolling is possible

    The Custom Listbox looks like this(just one property added for now)

    Public Class MyScrollableListbox
        Inherits ListBox
    Public Property IsItemsEnabled() As Boolean
     Return GetValue(IsItemsEnabledProperty)
     End Get
    Set(ByVal value As Boolean)
     SetValue(IsItemsEnabledProperty, value)
     End Set
     End Property
    Public Shared ReadOnly IsItemsEnabledProperty As DependencyProperty = _
     DependencyProperty.Register("IsItemsEnabled", _
     GetType(Boolean), GetType(MyScrollableListbox), _
     New FrameworkPropertyMetadata(Nothing))
    End Class

    In the xaml(or if you are going to make it a custom control then you can give it in your Generic.xaml)

    Now if you set the property IsItemsEnabled to false the listbox will be disabled,but allowing you to scroll.

    edit: Added in CodeProject

    Hope it helps :)

    Recently I had started using FxCop,which is a wonderful code analysis tool.Soon after getting into it,I felt the need of rules specific to my requirements and standards.One such need was in the area of ‘Naming of Variables’.
    Every project/organization might have their own naming standards and rules for variables. FxCop provides a way to make sure everyone in the team adheres to these rules.
    I found this material quite interesting and helpful.
    FxCop And Code Analysis

    FxCop analyzes the CIL( Common Intermediate Language) ,so it is supposedly to be language independent.The CIL genarated by the vb compiler and the c# compiler are almost same,but there are diferences which needs to be handled and taken care of while writing custom rules.
    One such example i faced in checking for naming convention of string variables is posted here.

    You can always see the CIL genarated using the ‘ildasm’ tool which comes with visual studio.
    It would be helpful ,if you look at the IL genarated while writing rules,as writing rules is always a trial and error method.
    One other tool which comes handy is Reflector.

    Will soon post more on writing custom rules.Hope this helps to start with!!!!