How to generate xaml file from rehosted sample??

Hi,

in the rehosting workflow designer sample(Lab 10), the generated files are: .xoml, .cs and .rule.

My question is what if I want to view the workflow in xml file format .xaml

How could I change the code so that the generated files include .xaml file

Thanks..



Answer this question

How to generate xaml file from rehosted sample??

  • nanocity

    But when I add any properties during runtime (in the rehosted disener) I got it in .cs file but it doesn't appear in .xaml do I have to do any extra step so that it is serialized in the .xaml file

    Thanks...


  • sidhuvirgoster

    NMM wrote:

    Hi,

    in the rehosting workflow designer sample(Lab 10), the generated files are: .xoml, .cs and .rule.

    My question is what if I want to view the workflow in xml file format .xaml

    How could I change the code so that the generated files include .xaml file

    Thanks..

    The XOML language underneath is actually the same language as XAML. The only difference is the elements that are put into it. XOML uses node element names, which are similar to WPF, but in XOML they are associated with processes, rather than the buttons and interface elements found in XAML. In addition, XOML uses a different file extension, .xoml, so as not to confuse applications trying to open them up as interface elements.



  • arogan

    It depends on if you are compiling the XAML or executing the xaml. If you are going to compile the XAML you can use the Code element to define blocks of code. This is an interesting fact - but of course none of the current tools support it.

  • Duque Vieira

    WF does not current supporting defining new properties in XAML. That is why you get a code behind file. If you want those properties and XAML, then you need to use a custom base class. There are several examples in this forum of doing just that.

    Matt



  • How to generate xaml file from rehosted sample??