Programming with .NET - Generalhttp://forums.silverlight.net//17.aspx/1?Programming+with+NET+GeneralGeneral discussions around authoring Silverlight .NET applications.Mon, 01 Jan 0001 00:00:00 -050017281271http://forums.silverlight.net//p/125016/281271.aspx/1?How+do+you+add+a+new+XAML+file+to+the+projectHow do you add a new .XAML file to the project <p>I have created a New Project - Silverlight Application that is named &quot;myFirst&quot;</p> <p>It created 2 folders. &quot;myFirst&quot; and &quot;myFirst.Web&quot;. </p> <p>1. My First&nbsp;question is wich of these folders that I will develop my application in. With this I meen add Folders, ImageFolders, .txt Files etc. ?</p> <p>2. It has created a file under &quot;myFist&quot;&nbsp;named: &quot;MainPage.xaml&quot;. What I need is&nbsp;to create a&nbsp;new .xaml file&nbsp;named: &quot;Login.xaml&quot; but when rightclicking &quot;myFirst&quot; and choose &quot;New Item&quot;, I cant see any .XAML file anywhere. What is the procedure to create a new .XAML file that automatically will hold a .cs file ?</p> <p>Thank You!</p> 2009-09-03T16:22:33-04:00281279http://forums.silverlight.net//p/125016/281279.aspx/1?Re+How+do+you+add+a+new+XAML+file+to+the+projectRe: How do you add a new .XAML file to the project <p>Hi,</p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>Silverlight Web Developer</h4> 1. My First&nbsp;question is wich of these folders that I will develop my application in. With this I meen add Folders, ImageFolders, .txt Files etc. ?</blockquote> <p></p> <p>There are a Silverlight app at myFirst folder and asp.net app at myFirst.Web</p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>Silverlight Web Developer</h4> 2. It has created a file under &quot;myFist&quot;&nbsp;named: &quot;MainPage.xaml&quot;. What I need is&nbsp;to create a&nbsp;new .xaml file&nbsp;named: &quot;Login.xaml&quot; but when rightclicking &quot;myFirst&quot; and choose &quot;New Item&quot;, I cant see any .XAML file anywhere. What is the procedure to create a new .XAML file that automatically will hold a .cs file ?</blockquote> <p></p> <p>You need to choose Silverlight UserControl from window &quot;Add New Item&quot;</p> <p>&nbsp;</p> 2009-09-03T16:33:57-04:00281284http://forums.silverlight.net//p/125016/281284.aspx/1?Re+How+do+you+add+a+new+XAML+file+to+the+projectRe: How do you add a new .XAML file to the project <p>Hi,</p> <p>Check this Blog-</p> <p><a href="http://www.dotnetcurry.com/ShowArticle.aspx?ID=226">http://www.dotnetcurry.com/ShowArticle.aspx?ID=226</a></p> <p><a href="http://pkrd.blogspot.com/2009/05/writing-first-silverlight-20-program.html">http://pkrd.blogspot.com/2009/05/writing-first-silverlight-20-program.html</a></p> <p>Thanks,</p> <p>Pravin</p> <p>&quot;<strong><u>Please mark as answered, if this answers your question</u></strong>&quot;</p> 2009-09-03T16:41:12-04:00281285http://forums.silverlight.net//p/125016/281285.aspx/1?Re+How+do+you+add+a+new+XAML+file+to+the+projectRe: How do you add a new .XAML file to the project <p>Thank you, <strong>Sergey.Lutay,</strong></p> <p>I understood how to add the Silverlight UserControl but I am not sure if I understand the differences between &quot;myFirst&quot; and &quot;myFirst.Web&quot;.</p> <p>When I develop my application will I add folders, textFiles and Images to &quot;myFirst&quot;. Is this where I develop the application. ?</p> <p>If I understand correct I will not add anything to &quot;myFirst.Web&quot;.</p> <p>I am not sure about the differences of these. For example wich of these folder is the one I will host on the webserver later on ?</p> <p>Thank you...</p> 2009-09-03T16:41:13-04:00281289http://forums.silverlight.net//p/125016/281289.aspx/1?Re+How+do+you+add+a+new+XAML+file+to+the+projectRe: How do you add a new .XAML file to the project <p></p> <blockquote><span class="icon-blockquote"></span> <h4>Silverlight Web Developer</h4> When I develop my application will I add folders, textFiles and Images to &quot;myFirst&quot;. Is this where I develop the application. ?</blockquote> <p></p> <p>If you will download resources to Silverlight app from server you should add all resources to ASP.NET(myFirst.Web) project.(You will download a resources over http)</p> <p>If you want to make your resources as part of Silverlight app you should add them to myFirst project(Resources will be as part of Silverlight assembly and will increase size of assemvly)</p> <p>You will need to deploy myFirst.Web project to server.</p> <p>&nbsp;</p> 2009-09-03T16:49:58-04:00281296http://forums.silverlight.net//p/125016/281296.aspx/1?Re+How+do+you+add+a+new+XAML+file+to+the+projectRe: How do you add a new .XAML file to the project <p>Hi,</p> <p>1) &quot;<strong><u>myFirst</u></strong>&quot; this is a Silverlight application. where you do designing and writing code for that design. You can prefer using Miccrosoft Expression Blend for designing purpose. And VS 2008/2010, for development purpose.</p> <p>2) &quot;<strong><u>myFirst.Web</u></strong>&quot; This is a web application which will host Silverlight application (Silverlight controls) on HTML page/ .ASPX pages. So, your web app will act like host for Silverlight app.</p> <p>3) Silverlight App always works at client side in browser. It will be deployed in form of a compressed format called .XAP.</p> <p>4) To access any Data, Text file or Images from Silverlight app, you can either keep it in Silverlight app or in Web application. If you keep the files in Silverlight app then you can package it in .XAP file as resources or You can download the contents from we application on demand as well.</p> <p>5) For database connectivity you can prefer using WCF/Web Services for this.</p> <p>Check the Lab Manuals below-</p> <p><a href="http://pkrd.blogspot.com/2009/05/silverlight-20-lab-manuals-for.html">http://pkrd.blogspot.com/2009/05/silverlight-20-lab-manuals-for.html</a></p> <p><a href="http://silverlight.net/GetStarted/">http://silverlight.net/GetStarted/</a></p> <p>Thanks,</p> <p>Pravin</p> <p>&quot;<strong><u>Please mark as answered if this answers your question</u></strong>&quot;</p> 2009-09-03T16:56:04-04:00281304http://forums.silverlight.net//p/125016/281304.aspx/1?Re+How+do+you+add+a+new+XAML+file+to+the+projectRe: How do you add a new .XAML file to the project <p>Thank you for your answers, I think this gave me a better understanding of the differences between this folders. I am coming from ASP.net so I try to see what simularities there is etc...</p> <p>Thanks for help</p> 2009-09-03T17:08:15-04:00