How to show Silverlight Popup
hello all,
i created simple silverlight 2.0 project . in default.aspx page added three images tv channel logos zeetv.jpg ,setmax.jpg ,sony .jpg .now want show show silverlight popup on mouse on event of these logos .the silverlight popup contains videos respective logo on which mouse on . if have code or links me please share also.
how achive this.
i waiting reply.
thanks
dinesh chaudhari
so want silverlight control show in regular web page popup ? in case put silverlight control tag in hidden div. when mouse on html images on page show div.
on silverlight object control tag, can use initparam specify page want silverlight start page
<object data="data:application/x-silverlight," type="application/x-silverlight-2-b1" width="100%" height="100%">
<param name="source" value="clientbin/wordtest.silverlight.xap"/>
<param name="initparams" value="channel=xxx"/>
code in silverlight app.xaml.cs:
private void application_startup(object sender, startupeventargs e)
{
// load main control
grid root = new grid();
this.rootvisual = root;
frameworkelement startpage = null;
if (e.initparams.containskey("channel"))
{
if(e.initparams["channel"] == xxx)
startpage = new page1();
else
...
}
root.children.add(startpage);
}
Silverlight > Programming Silverlight with .NET – General
Comments
Post a Comment