Reputation: 23
How can I reference to an assembly and use it's classes (ex: XamlWriter
to generate xmal) in Phalanger web applications?
Upvotes: 1
Views: 187
Reputation: 1050
Add the reference into web.config, into
<phpNet>
<classLibrary>
<add assembly="PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
Phalanger will import all the objects from the assembly, and you can use them from PHP using classic PHP syntax (since Phalanger 3.0), e.g:
use System\Windows\Markup;
$saved = Markup\XamlWriter::Save($obj);
Upvotes: 1