问题
In WF 4, is there a way to compile XAML at runtime?
In WF 3.5 you were able to do this via WorkflowCompiler
Is there something similar in WF 4?
回答1:
You can in fact load an run XAML at runtime. Here are a couple links. But let's be clear that it's not compiling it -- it's interpreting it -- because that's how XAML works.
- Walkthrough
- Video by Ron Jacobs
Let me know if you have any questions!
来源:https://stackoverflow.com/questions/9417102/workflow-4-runtime-compiling