I am working on some ‘call-control’ application to be developed in wpf.
I want to implement state machine pattern in my C# code for following purpose:
there are various states as mentioned in following figure.

when call is in ‘ringing‘ state and I click on answer button, state goes into ‘Talk‘ and button gets disabled.
Please provide me useful links/documents that will help me. Is there any built in state class for implementing this?
Thanks in adv.
VisualStateManager is the thing which design specifically to handle visual application states.
here’s where you start with it:
http://msdn.microsoft.com/en-us/library/system.windows.visualstatemanager.aspx
and here’s a good tutorial (doesn’t require Blend):
http://windowsclient.net/wpf/wpf35/wpf-35sp1-toolkit-visual-state-manager-overview.aspx
you can do a lot of cool things including animated transitions between states etc.
For the actual implementation it’s got little to do with WPF – I’d suggest looking at state pattern (ex. http://forum.unity3d.com/threads/38956-Very-Simple-StateMachine-Pattern-C and many others).