laname.blogg.se

How to use microsoft silverlight on mac
How to use microsoft silverlight on mac







how to use microsoft silverlight on mac how to use microsoft silverlight on mac how to use microsoft silverlight on mac

Step 8 − This example assumes that you have created an event-handling method named ClickMe_Click. Step 7 − Given below is a simple code in MainPage.xaml in which a Button and a TextBlock are defined inside the StackPanel. Either you can write XAML code directly or you can also use Toolbox to drag and drop different UI elements. The MainPage.xaml file defines the user interface for Silverlight content. Step 6 − Set FirstExampleTestPage.html as the Start page. Step 5 − Right-click FirstExampleTestpage.aspx. aspx file, leaving just the plain static HTML file. To demonstrate that Silverlight does not depend on any particular server-side technology, let us delete this. You can see this in the Solution Explorer window as shown below.Īnything that can serve up the content via HTTP will do but this is Visual Studio, and it understands the ASP.NET web technology, so that is what it gives us. Now, we do need an ASP.NET web application. Step 4 − MS-Visual Studio has created two projects, the Silverlight project and an ASP.NET web application. The default is an ASP.NET Web Application Project.

how to use microsoft silverlight on mac

Step 3 − Check the Host the Silverlight application checkbox. The Silverlight project itself is just going to build the Silverlight content, and that content is just one asset amongst many that are going to make up the whole web application. In the right pane, choose Silverlight Application.Įnter a project name and a location on your hard drive to save your project and then click OK to create the project. Under Templates, select Visual C# and then click Silverlight. Step 2 − A New Project dialog box will open. Click the File menu, point to New and then click Project. The easiest way to start using Silverlight is to create an ordinary website with HTML pages and no server side code. We will create a compiled Silverlight application containing a mixture of XAML, the mockup language we use to define Silverlight user interfaces, and. The second thing we need is the Silverlight content itself. It can also include the logic to detect whether Silverlight is installed, and can provide some fallback user interface, when it is absent. The page needs to incorporate a suitable tag to load the Silverlight plug-in. Silverlight is intended for rich internet applications, It is designed to run inside of a web browser as part of a web page. We need two things −įirst, we require a web page. In this chapter, we will look at a working example of Silverlight.









How to use microsoft silverlight on mac