Deserialize XAML

If I have a XAML (XOML) schema how can I deserialize and execute it?
[69 byte] By [laan] at [2008-2-28]
# 1
You can deserialize like:

DesignerSerializationManager serializationManager = new DesignerSerializationManager();
using (serializationManager.CreateSession())
{
WorkflowMarkupSerializer serializer = new WorkflowMarkupSerializer();

rootActivity = (IRootActivity)serializer.Deserialize(serializationManager, stringReaderForXaml);
}
You can use the WorkflowCompiler to compile the XAML file directly along with other .cs/.vb files. Dharma has a sample for compiling and executing workflows at http://www.dharmashukla.com/workflowshell.zip.

AkashSagar at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified