Silverlight / WPF - How to include xaml page contents to aspx page.?

Asked By Ramesh Nalla on 16-Nov-11 04:53 AM
Hi All,

Greetings!..

Iam new to silverlight, 

When i have created a silverlight application i got MainPage.xaml file,I designed a login screen in it and pressed F5(it open SilverlightTestPage.aspx )up to here fine, my question here is i want to include xaml content into aspx pages how to do this.?
like multiple aspx pages in asp.net

after clicking login button it navigate to Home.aspx(here i want to include xaml content) how to do this..?

any help
Thanks in advance

Regards
Ramesh N
Kirtan Patel replied to Ramesh Nalla on 17-Nov-11 11:34 AM
If you want to use XAML control, you need to have ASP.NET 3.5 extension in your machine. then, you can use Silverlight control in aspx page of ASP.NET 3.5 extension web application.
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>Untitled Page</title>
</head>
<body>
  <form id="form1" runat="server">
  <div>
   <asp:ScriptManager runat="server" ID="ScriptManager" />
    <asp:Silverlight runat="server" ID="silverlightLayout" InstallationMode="Inline" Version="1.1" Source="Page.xaml"
      EnableHtmlAccess="true" Windowless="true" Width="844" Height="472" PluginBackColor="Transparent" />
  </div>
  </form>
</body>
</html>