This article explains how to create a Custom Workflow Action in Visual Studio 2010 and how to use it in SharePoint Designer 2010 to create a workflow.
Pro WPF: Windows Presentation Foundation in .NET 3.0