There are no projects recently, and there is plenty of time to start learning Silverlight.
After the Silverlight project is added to the project, several download demos are added to try out the results. The first step is stuck, after multiple controls are added to a Silverlight project, the default call is always in the mianpage. After reading some information, it is found that parameters must be passed in the object that calls Silverlight, then, the app accepts the parameters and determines which control to call based on the parameters.
-
- <Object Data="Data: Application/X-Silverlight ," ID="Xamlobject" Type="Application/x-silverlight-2"
- Width="100%" Height="100%">
-
- <Param Name="Source" Value="Clientbin/silverlighttest11.0.xap" />
- <Param Name="Onerror" Value="Onsilverlighterror" />
-
- <Param Name="Background" Value="White" />
- <Param Name="Minruntimeversion" Value="3.0.40818.0" />
-
- <Param Name="Autoupgrade" Value="True" />
- <Param Name="Initparams" Value="Id = 12343, name = Silverlight learning" />
-
- <A Href="Http://go.microsoft.com/fwlink? Linkid = 149156 & V = 3.0.40818.0" Style="Text-Decoration: none ;">
- <IMG SRC="Http://go.microsoft.com/fwlink? Linkid = 108181" ALT="Getting Microsoft Silverlight"
-
- Style="Border-style: none" />
-
- </A>
- </Object>
-
- Private VoidApplication_startup (ObjectSender, startupeventargs E)
-
- {
-
- Mainpage main =NewMainpage ();
-
- This. Rootvisual = Main;
-
-
- Foreach(StringItemInE. initparams. Keys)
-
- {
-
- Main. ListBox. Items. Add (NewTextblock ()
-
- {
- TEXT = string. Format ("Webpage parameters: {0 }={ 1 }", Item, E. initparams [item])
-
- });
-
- }
-
-
-
- }