Skip to content

Silverlight

Sevenate edited this page Oct 24, 2018 · 3 revisions

Fix IE vertical scroll bar visibility

For html and body tags change css property overflow value from default auto to hidden

Source

Silverlight Navigation

HTML page that host silverlight should have the following:

<!-- Last one in head tag-->
<script src="Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<!-- ... Right after the object tag -->
<iframe id="_sl_historyFrame" style='visibility:hidden;height:0px;width:0px;border:0px'>
</iframe>

MSBuilding Web Site Projects doesn’t Copy Silverlight XAP

Fix: add post-build task in Silverlight project:

<Target Name="AfterBuild">
    <Copy Condition="" SourceFiles="bin\Debug\SampleSilverlight.xap" DestinationFolder="..\SampleSilverlight.Web\ClientBin" />
</Target>

Source

Clone this wiki locally