XAML base workflows can either be loaded directly into the WorkflowRuntimeCreateWorkflow function or they can be compiled using wfc.exe or the WorkflowCompiler class. If the root node has a x:Class attribute the XAML must be compiled before it can be used.
Use a TypeProvider to help loading all the activity types declared in the XAML.