Using the Profile Method in Silverlight
4116 단어 silverlight
Under normal circumstances, SL App is hosted by a Web Application, and that Web Application can be easily configured, so we can consider transferring the configuration to Silverlight by the website.
The specific method, the SL object is defined by an object in the web page, such as
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
width="100%" height="100%">
<param name="source" value="ClientBin/TestProject.Shell.xap" />
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.41108.0" />
<param name="autoUpgrade" value="true" />
<param name="InitParams" value="serviceAddress=http://localhost:8028/GeneralService.svc" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.41108.0" style="text-decoration: none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight"
style="border-style: none" />
</a>
</object>
It can be seen that there is a param tag named InitParams, and its value can be obtained by using the InitParams property passed in the StartupEventArgs parameter in the Application_Startup event processing method in App.xaml.cs, and the type is IDictionaryhttp://localhost:8028/GeneralService.svc .
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Silverlight animation performanceAnimation performance can be improved with several configurations: Desired Frame Rate Configure in the WEB project: Hard...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.