Welcome to the forums.
Yes, this will be super easy to achieve with the next build (Beta 3) coming soon.
C:\Program Files (x86)\MSBuild\CSharpXamlForHtml5\InternalStuff\Compiler\JSIL.Meta.dll(Note: the "Program Files" path may be slightly different on x86 systems) 2) Add the following line to your .CSPROJ file:
<CSharpXamlForHtml5AllowAnyReferences>True</CSharpXamlForHtml5AllowAnyReferences>(Note: you can add it anywhere, for example in the first PropertyGroup)3) Use the following C# code to inject JS code into your C# code:
Code: Select all
JSIL.Verbatim.Expression("window.location.href = 'http://www.userware-solutions.com'");
Note: this will be part of a separate business pack that will provide lots of cool advanced features like this.