Seminar Internetdienste Thema: Silverlight

Size: px
Start display at page:

Download "Seminar Internetdienste Thema: Silverlight"

Transcription

1 Seminar Internetdienste Thema: Silverlight Zlatko Filipovski zlatko.filipovski [AT] uni-ulm.de Wintersemestar 2007

2 Contents 1 Overall Why was Silverlight created Silverlight 1.0 (JavaScript) Silverlight 2.0 (.Net Languages) The Initialization XAML XAML Elements Canvas Line TextBlock Rectangle Image MediaElement Elements Properties Width & Height Canvas.Left & Canvas.Top Name Storyboards & Animations Events Background Code Creating the Project Adding XAML Objects through the Code Accessing XAML Objects through the Code Deleting XAML Objects through the code 16 4 Summary 17 1

3 Chapter 1 Overall 1.1 Why was Silverlight created In a world where the Internet appears more frequently in our everyday lives, static web sites composed only from text and pictures have become boring. A solution for this problem was the creation of PHP. Suddenly it was possible for the Server to create dynamical web sites, depending on the choices the user made. Still this wasn t the best solution, because the server had to do all the work. Through the creation of JavaScript, it was suddenly possible for the client to take over a part of the workload. JavaScript allows the Developer to create a Code which will be executed from the Browser on the Client side, and so change the look of the web page, without the need to communicate with the Server. This allow for a more interactive and faster responding web pages. Two big problems with JavaScript are that, it is really hard to program in it, and everybody can see the JavaScript code. Silverlight was created in order to replace JavaScript. Well replace is not really the right word here, because Silverlight itself uses JavaScript code. The advantage of Silverlight over JavaScript is s not only the simpler art of programming, but also the highly advanced graphic part, which not only allow for the creation of complicated animations but also for integrated multimedia support(images, sound and video). A Silverlight Application can be divided in to 4 parts: The Web Page that shows the Application The JavaScript function that initializes the Application The XAML file which contains the graphical part from the Application The background code for the Application Currently (February 2008) there are 2 versions of Silverlight. The first version, Silverlight 1.0 was released in September At the same time there was an Alpha release of Silverlight 1.1, now known as Silverlight 2.0. Both Silverlight version are identical in the first 3 parts. The only difference (for now) between the two releases is in the background code. 1.2 Silverlight 1.0 (JavaScript) The Code Behind the Silverlight Application in Silverlight 1.0 can be written in JavaScript. Being so that JavaScript can be interpreted by almost every Browser, and the fact that it doesen t need 2

4 to be previously compiled, a Silverlight 1.0 Application can be created from any computer with only a text editor and it can be deployed to any kind of Web Sever. It can even be executed locally, through the file protocol in the browser. But all this advantages are bringing other disadvantages. Programming in JavaScript is not easy and the debugging is complicated. Not only that, but JavaScript is slow. The first impression was that Microsoft released Silverlight 1.0 in order to be the first to release a product with which Rich Internet Application can be developed. But with time, Microsoft has shown (through different demos)that Silverlight 1.0 is not a product version to get us to Silverlight 2.0, but actually a standalone Product. Microsoft also declared that at this time, has no intentions to stop the developing of JavaScript as the background code of Silverlight Applications. 1.3 Silverlight 2.0 (.Net Languages) Silverlight 2.0 Beta 1 is due to be released in the first 3 Months from Until now it was known as Silverlight 1.1, but Microsoft felt that with all the new features that will be coming with this version, this should not be seen as just a minor release. This is just a naming strategy from Microsoft. So the previously mentioned Alpha release from Silverlight 1.1 in Section 1.1, should be seen as an Alpha release from Silverlight 2.0. From now on, in this paper, we would make no distinction between 1.1 and 2.0. Silverlight 2.0 allows the usage of JavaScript as well as.net languages (like Visual C#, Visual Basic, IronRuby, Ironpython) for the background code. It also has an following features that were not implemented Silverlight 1.0 Managed Exception Handling Managed HTML Bridge Security Enforcement XMLReader/Writer others... Due to the difference in structure between JavaScript and the.net languages, Silverlight Application in which the background code is written in.net are usually much faster. For example: a Chess Silverlight Application was written, in which the opponent can be simulated through an algorithm written in JavaScript or in a C#. There is now diference in the structure of the algorithm, except the language in which it was written. When the computer plays with the algorithm written in JS, it manages to compute around Nodes in a certan time limit. The algorithm written in C# computes around Nodes in the same time limit. 3

5 1.4 The Initialization As already mentioned in Section 1.1 Silverlight itself uses JavaScript code, either as a background code or to initialize itself. The Silverlight object written in JavaScript, which is used to initialize the Application is a part of the Silverlight SDK (Software Development Kit) and can be downloaded from [2]. This JavaScript file(usually called Silverlight.js) and contains all the information that are necessary for the Plugin to be initialized and Silverlight objects to be created. Adding a reference to this script file only gives you this possibility, but will not execute any code. The usual way to reference this script into a web site is to add a reference between the head tags. Listing 1.1: Referencing the JavaScripts <head> <script type= t e x t / j a v a s c r i p t src= S i l v e r l i g h t. j s ></ script> <script type= t e x t / j a v a s c r i p t src= c r e a t e S i l v e r l i g h t. j s ></ script> </head> The createsilverlight.js is also a script file which contains a function for each Silverlight Application on the web page. It usualy looks like this: Listing 1.2: createsilverlight.js f u n c t i o n c r e a t e M y S i l v e r l i g h t P l u g i n ( ) { S i l v e r l i g h t. c r e a t e O b j e c t ( myxaml. xaml, // Source property value. parentelement, // DOM r e f e r e n c e to h o s t i n g DIV tag. m y S i l v e r l i g h t P l u g i n, // Unique plug in ID value. { // Per i n s t a n c e p r o p e r t i e s. width : 3 0 0, // Width o f r e c t a n g u l a r r e g i o n o f // plug in area in p i x e l s. height : 3 0 0, // Height o f r e c t a n g u l a r r e g i o n o f // plug in area in p i x e l s. i n p l a c e I n s t a l l P r o m p t : f a l s e, // Determines whether to d i s p l a y // in p l a c e i n s t a l l prompt i f // i n v a l i d v e r s i o n d e t e c t e d. background : #D6D6D6, // Background c o l o r o f plug in. iswindowless : f a l s e, // Determines whether to d i s p l a y // plug i n i n Windowless mode. framerate : 2 4, // MaxFrameRate property value. v e r s i o n : 1. 0 // S i l v e r l i g h t v e r s i o n to use. }, { onerror : null, // OnError property value // event handler f u n c t i o n name. onload : n u l l // OnLoad property value // event handler f u n c t i o n name. }, n u l l ) ; // Context value event // handler f u n c t i o n name. } 4

6 With the function createmysilverlightplugin we can now start our Silverlight Application. All we need to do is execute this function somewhere in our web page, and the script will do the rest. Usually this is done like this: Listing 1.3: Calling the constructor <body> <div id= m y S i l v e r l i g h t P l u g i n H o s t > </ div> <script type= t e x t / j a v a s c r i p t > // R e t r i e v e the div element you c r e a t e d in the p r e v i o u s step. var parentelement = document. getelementbyid ( m y S i l v e r l i g h t P l u g i n H o s t ) ; // This f u n c t i o n c r e a t e s the S i l v e r l i g h t plug in. c r e a t e M y S i l v e r l i g h t P l u g i n ( ) ; </ script> </body> The div Tag with the id mysilverlightpluginhost is being used as the Parent Element of the Silverlight Application. This means that this is where the Silverlight Application will be placed. The Parent Element is very useful at bigger web pages, because this way we can specify where the Silverlight Application should appear. There is also the possibility to put more then one Silverlight Application in one web page. All that needs to be done is to create a function(constructor) CreateMySecondSilverlightPlugin() in createsilverlight.js that is similar to the function createmysilverlightplugin, and then put a similar code to the web page like in Listing

7 Chapter 2 XAML Extensible Application Markup Language or XAML(it is pronounced zammel ) is a an advanced version of the Extensible Markup Language (XML) standard. In XAML (similar to XML) the user has the ability to define his own elements. XAML was first used by the Windows Presentation Foundation (WPF which was also developed by Microsoft) in order to create the User Interface (UI), making the UI completely separated from the application code. Microsoft has conveniently used XAML for Silverlight, making it easier for Developers and Designers to work together. There are a couple of XAML elements that Silverlight already supports(like TextBlock,Image) and its expected that a couple more will be added in the next released. Here we will be talking about this couple of elements: Canvas Line TextBlock Rectangle Image Storyboard Almost every element has following properties: Name Width (in px) Height (in px) Background... From now on we will be talking about Elements and Objects. The difference between this two are that an Object is an already initialized Element which exist only during the runtime of the Application. The Element is the Blueprint for every Object. 6

8 2.1 XAML Elements Canvas The Canvas is the primary element in the XAML(and Silverlight) structure. Just like an Artist needs a Canvas(or something similar) to paint a picture, the Silverlight Designer needs his Canvas. In the Silverlight XAML file, there is always a Canvas on the Top level from the XML hierarchy, which contains the basic properties of the Silverlight Application and all other Objects. Listing 2.1: Canvas Example - 1 <Canvas xmlns= h t t p : // schemas. m i c r o s o f t. com/ c l i e n t /2007 xmlns:x= h t t p : // schemas. m i c r o s o f t. com/ winfx /2006/ xaml > <TextBlock>H a l l o</ TextBlock> <TextBlock Canvas. Top= 20 >World</> </ Canvas> A Canvas can also be added in another Canvas element, usually around a couple of elements who are a Group. This way the Canvas can act similar as a layer in Photoshop, and allow the Designer to easily set or change the properties of the elements in the Group. For example,by setting an Event Trigger on the Canvas, it will automatically set the same Event Trigger on all the elements in the Canvas. Listing 2.2: Canvas Example - 2 <Canvas xmlns= h t t p : // schemas. m i c r o s o f t. com/ c l i e n t /2007 xmlns:x= h t t p : // schemas. m i c r o s o f t. com/ winfx /2006/ xaml > <Canvas MouseMove= DoSomething > <TextBlock>H a l l o</ TextBlock> <TextBlock Canvas. Top= 20 >World</ TextBlock> </ Canvas> </ Canvas> Line A Line is one of the most basic elements in XAML. It is defined through the Start (X1,Y1) and the End (X2,Y2) coordinates. The thickness of the Line is defined by the property StrokeThickness and the Color of the Line by the property Stroke. Listing 2.3: Line Example <Line X1= 50 Y1= 50 X2= 100 Y2= 50 Stroke= Blue StrokeThickness= 1 /> In the Listing 2.3 the Line will be Blue, 1px thick, will start from the coordinates (50,50) and will end at (100,50), giving it a length of 50px. 7

9 2.1.3 TextBlock The TextBlock is almost like in every other Programming Language. It is defined through the Size (Width and Height), the Position (Canvas.Left and Canvas.Top) and the Text it has. There is also the possibility to change the Font, FontSize, FontColor, change the BackgroundColor and others. Listing 2.4: TextBlock Example <TextBlock Text= H a l l o World Background= Blue /> Rectangle The Rectangle element describes a square or rectangle shape, optionally with rounded corners. It is defined by its Width and Height and the corners of the Rectangle can be rounded by using the RadiusX and RadiusY properties. The following code creates a Yellow Rectangle, with Width 100 and Height 100, starting at the (20,20) position in the Canvas Listing 2.5: Rectangle Example <Rectangle Width= 100 Height= 100 Canvas. L e f t= 20 Canvas. Top= 20 Background= Yellow /> Image With the Image element you can easily display images in Silverlight. For now though, you can only show JPG or PNG images. To display an image, all you need to do is set the Source property, of the Image object, to the path of the image file source. This path can be relative or static. For security reasons, Microsoft has disabled the possibility for Silverlight to access any files locally, so the Source property must be on-line. This security feature makes programing and debugging locally a somewhat difficult task. There are different tip s on how to avoid this, but they will not be explained here. For more information, check [3] <Image Source= h a l l o. jpg /> Listing 2.6: Image Example - 1 The Image in the Image Example 2.6 will be displayed on the (0,0) position on the Canvas, and because the Width and Height properties are not specified in the Image object, it will have it full size. That means that the Width and Height of the Image object, will be set to the Width and Height of the Source. This will cause that the layout of our Web Page to be different each time we change the Source of the Picture(unless the Pictures all have the same dimensions, which is not so often). There is the possibility to set the Height and the Width properties of the Image object manually, and then set the Stretch property to one of the following values: None, Fill, Uniform or UniformToFill. 8

10 Listing 2.8: Height & Width Example <TextBlock Text= h e l l o world! Canvas. Top = 0 /> <TextBlock Text= h e l l o world! Canvas. Top = 100 Width= 5 > <TextBlock Text= h e l l o world! Canvas. Top = 200 Width= 100 > Listing 2.7: Image Example - 2 <Image Source= h a l l o. jpg Height= 100 Width= 50 Strech= F i l l /> Using this enables the Developer to create a better Web Experience, with a more stable layout of the Elements MediaElement Silverlight was designed to be a Rich Multimedia Experience, so naturally there is the possibility to play Videos or Audio. Currently supported formats are: wmv for videos and mp3 and wma for audio. The MediaElement is similar to the Image element, but has the extra methods Play, Pause and Stop, which can be called from the background code, giving it the possibility to pause and play the video or audio. Silverlight also has a full screen rendering support. 2.2 Elements Properties Width & Height The Width and Height are a part of the defining properties on every Object. Although the Designer doesn t always have to set them. If these properties are not set, then the default value will be automatically defined by Silverlight. This means if we do not set the Width and Height of a TextBlock or an Image, then Silverlight will do this, by setting them to the needed size. This way, the Text or the Image will always be shown in there full size, making the whole Web User Experience a little unpredictable Canvas.Left & Canvas.Top This properties define the place where the upper left edge from the object will be in the Canvas. Each element has the properties Canvas.Top and Canvas.Left with default value 0. Here is the value expressed in px(pixel). This value can be changed on all elements by the code in the background, while the Application is running, except on the Root Canvas. The Canvas.Top and Canvas.Left properties are relative to the Canvas in which the element is in. So if we put a Canvas,who starts at (100,100), around the two TextBlock s from Listing 2.1,in order to get the same look as before, we got to edit the Canvas.Top and Canvas.Left properties of the TextBlock s. This way, if you want to change the location on the grouped elements in Listing 2.9, instead on changing the Canvas.Top and Canvas.Left properties on all the elements, all you 9

11 Listing 2.9: Canvas.Top & Canvas.Left <Canvas xmlns= h t t p : // schemas. m i c r o s o f t. com/ c l i e n t /2007 xmlns:x= h t t p : // schemas. m i c r o s o f t. com/ winfx /2006/ xaml > <Canvas MouseMove= DoSomething Canvas. Top= 0 Canvas. L e f t= 0 > <TextBlock>H a l l o</ TextBlock> <TextBlock Canvas. Top= 20 >World</ TextBlock> </ Canvas> </ Canvas> need to do is to change the Canvas.Top and Canvas.Left property on the Canvas that surrounds them. For example, if we want to move them all 100px to the right, all we need to do is change the Canvas.Top from the Canvas that makes the Group. Listing 2.10: Canvas Move <Canvas MouseMove= DoSomething Canvas. Top= 0 Canvas. L e f t= 100 > Name The Name is one of the more important properties of the Silverlight 2.0 elements. Although it almost makes no difference in the XAML code, it is really important for the Code Behind. With the help of the name, a Silverlight Object can be accessed and its properties changed after the Application has been started (usually on triggered Events, Section 2.4). 2.3 Storyboards & Animations Although not actually an element which can be seen in the Silverlight Application, Storyboards can be written in the XAML file. A Storyboard changes a property of an object from one value to another. This can happen instantly(which is no fun) or over a period of time, depending on the Animation. Each Storyboard can have more then one Animation. An Animation has always one target and one property of the target that needs to be animated. The target and property are actually defined in the storyboard, but can be change in every Animation, so that a Storyboard can access more then one object and change more then one property. There are 3 different kind of Animation in Silverlight right now, DoubleAniamtion, ColorAnimation and PointAnimation. They are all used in different situation, depending on the property that needs to be changed. ColorAnimation is used when the property Color is(background), Double when the property a Number is(width,height...), and Point when the property a Point is. Listing 2.11: Storyboard <Canvas xmlns= h t t p : // schemas. m i c r o s o f t. com/ c l i e n t /2007 xmlns:x= h t t p : // schemas. m i c r o s o f t. com/ winfx /2006/ xaml 10

12 > <TextBlock x:name= t ext1 Text= Hallo Canvas. Top= 20 Canvas. L e f t= 20 /> <TextBlock x:name= t ext2 Text= World Canvas. Top= 40 Canvas. L e f t= 40 /> <Canvas. T r i g g e r s> <EventTrigger RoutedEvent= Canvas. Loaded > <EventTrigger. Actions> <BeginStoryboard> <Storyboard x:name= Test > <DoubleAnimation Storyboard. TargetName= text1 Storyboard. TargetProperty= Canvas. L e f t To= 300 Duratation= 0 : 0 : 4. 2 /> <DoubleAnimation Storyboard. TargetName= text2 Storyboard. TargetProperty= Canvas. L e f t To= 300 Duratation= 0 : 0 : 3. 2 /> <DoubleAnimation Storyboard. TargetName= text2 Storyboard. TargetProperty= Canvas. Top To= 300 Duratation= 0 : 0 : 3. 2 /> </ Storyboard> </ BeginStoryboard> </ EventTrigger. Actions> </ EventTrigger> </Canvas. T r i g g e r s> </ Canvas> When the Storyboard Test in the Listing 2.11 is started, it will try to find the objects with the names text1 and text2 and then will start moving them simultaneous, text1 to the left, and text2 diagonally to the left. 11

13 2.4 Events Until now we only showed the graphic part from Silverlight, and there was almost no human interaction available. But a Rich Internet Application will not be complete without User Interaction, and for a UI to exist, Events are needed. There are two different types of Events in Silverlight: input Events non-input Events There are two ways to bind an event to an object. First possibility is through the XAML file(listing 2.13), when you define the object. The second possibility is through the code in the background, but more on that in chapter 3. There a different events properties in the XAML elements, but most of the elements have the following: MouseLeftButtonDown MouseLeftButtonUp MouseEnter MouseLeave MouseMove Loaded When these events are triggered is self explaining. MouseMove when you move the Mouse over the Object in which this Event is defined, the Loaded Event when the Object is loaded, and so on. We have already defined an Event Trigger in Listing According to that, every time we go over the Canvas with our Mouse, Silverlight will try to carry out the function DoSomething that is in our JavaScript or.net Code But here comes the interesting part. How would Silverlight know where to find the function. In Silverlight 1.0 this is fearly simple. Just add a reference of the.js file that contains the background code to the header of the HTML file. Listing 2.12: Reference to the background code in 1.0 <s c r i p t type= t e x t / j a v a s c r i p t s r c= BackgroundCode. j s ></ s c r i p t> In Silverlight 2.0 it s a little different. Here the reference is not to the file that contains the code, but rather to the compiled code, which is a.dll file. The reference is added in the XAML file, as an Attribute in the root Canvas. Listing 2.13: Reference to the background code in 2.0 <Canvas x:name= rootcanvas xmlns= h t t p : // schemas. m i c r o s o f t. com/ c l i e n t /2007 xmlns:x= h t t p : // schemas. m i c r o s o f t. com/ winfx /2006/ xaml x : C l a s s= c l r namespace:testapp. Page ; assembly=test. d l l Width= 640 Height= 480 Background= White > <Canvas x:name= picframe OnMouseEnter= Zoom /> </ Canvas> 12

14 The x:class is an Attribute from the xmlns, which is why it has the x: prefix. x:class should contain two information: the name of a class, in this case (as in most) through the namespace defined, and also an URI (Uniform Resource Identifier) of the compiled code in assembly. If the compiled code is in a sub folder, for example compiledcode, then the URI for the assembly will change to compiledcode/test.dll. The whole line will be: Listing 2.14: Reference to the background code in 2.0 x : C l a s s= c l r namespace:testapp. Page ; assembly=compiledcode / Test. d l l So in Listing 2.13, Silverlight 2.0 will search for a function Zoom in the compiled file. structure of the functions that handle events usually looks like this: The Zoom f u n c t i o n ( sender, eventargs ) { } Listing 2.15: Event handling function in JS Listing 2.16: Event handling function in C# p u b l i c void MouseOver ( o b j e c t sender, EventArgs e ) { } A Function that handles an Event always hast the same two parameters. Of course depending on the event the arguments type can variate, although this distinction is more noticeable in the.net languages. 13

15 Chapter 3 Background Code In order to explain the background code more easily, we will try to create an Image Gallery in Silverlight 2.0. The Gallery should do the following. When the page is first loaded, it should have only a text which says Click me to Start. When it will be clicked, it should disappear and show the first picture. 3.1 Creating the Project As already mentioned, the background code in Silverlight 2.0 can be JavaScript or a.net language. Here we will use C#. The simplest way to create a Silverlight 2.0 Project is using Visual Studio 2008 and the Silverlight Software Development Kit (SDK). Both can be downloaded from [1]. By creating a new Silverlight 2.0 Project in Visual Studio with the name RIA Gallery, Visual Studio it self creates all 4 parts from the Silverlight Application as listed in Section 1.1, using a template from the SDK. It will create a TestPage.html where the Silverlight Application will be(part 1), Silverlight.js and TestPage.html.js (part 2), Page.xaml (part 3),and the Page.xaml.cs file (part 4). The html file and the js files will be almost identical with the ones already shown in Section 1.4 The XAML and C# files will look like this. Listing 3.1: Page.xaml File <Canvas xmlns= h t t p : // schemas. m i c r o s o f t. com/ c l i e n t /2007 xmlns:x= h t t p : // schemas. m i c r o s o f t. com/ winfx /2006/ xaml x : C l a s s= RIA Gallery. Page ; assembly=clientbin / RIA Gallery. d l l Width= 640 Height= 480 Background= White > <Canvas x:name= PicFrame Width= 400 Height= 350 Canvas. L e f t= 100 Canvas. Top= 100 /> </ Canvas> Listing 3.2: Page.xaml.cs File using namespace RIA Gallery { p u b l i c p a r t i a l c l a s s Page : Canvas{ p u b l i c Page ( ) { Loaded +=new EventHandler ( Page Loaded ) ; 14

16 } p u b l i c void Page Loaded ( o b j e c t o, EventArgs e ){ // Required to i n i t i a l i z e v a r i a b l e s I n i t i a l i z e C o m p o n e n t ( ) ; } } } The class Page which is defined in the code, which is a subclass from a Canvas class, is the Class for the root canvas in our XAML file. This can be seen in the line x:class= RIA Gallery.Page;assembly=ClientBin/RIA Gallery.dll from the XAML. The code in the background of a Silverlight Application will only be executed in two situation. First situation is when an Event fires, that has already have a function that is binded to him (Section 2.4). Second situation is when the Application is loaded, in which case, the constructor Page is executed. When we are in the code, after we do some calculation, we usually want to show our result, start a Animation or something similar. This can be done by changing values on already created XAML objects, deleting objects or adding new objects. 3.2 Adding XAML Objects through the Code There are two ways to add XAML objects from the code to the XAML. Visual Studio 2008 already has the XAML Elements as Classes. So the creation of a TextBlock that says Start, starts on the (200,200) pixel, and on a mouse click will call the function Start App, would look something like this: Listing 3.3: Creating XAML Objects in C# p u b l i c void Page Loaded ( o b j e c t o, EventArgs e ){ TextBlock t x t = new TextBlock ( ) ; txt. Text = C l i c k me to S t a r t ; t x t. MouseLeftButtonUp += new MouseEventHandler ( Start App ) ; txt. SetValue ( NameProperty, s t a r t t x t ) ; txt. SetValue ( LeftProperty, ) ; txt. SetValue ( TopProperty, ) ; t h i s. Children. Add( txt ) ; } The second way to add XAML objects is through parsing an XAML string or file(see Listing 3.4. Listing 3.4: Creating XAML Objects in C# void Start App ( o b j e c t sender, MouseEventArgs e ){ s t r i n g xamlstring = <Image Source = img 1. jpg MouseLeftButtonUp= NextPic /> ; System. Windows. DependencyObject c o n t r o l s = XamlReader. Load ( xamlstring ) ; PicFrame. Children. Add( c o n t r o l s as Visual ) ; } 15

17 3.3 Accessing XAML Objects through the Code There are 3 ways to access XAML Objects through the code. If the object is defined with name in the XAML, and not added through the code, you can access it by simply typing its name. This is how the code would look like,if we want to access the PicFrame Canvas and change its Background color to Blue. Listing 3.5: Finding XAML Objects in C# SolidColorBrush c o l o r = new SolidColorBrush ( ) ; c o l o r. Color = Colors. Blue ; PicFrame. Background = c o l o r ; The only exception to this rule is the root Canvas. Although we gave it a name, we cant access it through it, because we are actually already in it. Instead, we access it through the variable this. Another way is by using the FindName function on the Canvas Element. This only works if the x:name property on the object is defined. Listing 3.6: Finding XAML Objects in C# TextBlock tb = t h i s. FindName ( s t a r t t x t ) as TextBlock ; Another way is accessing the Children Array of the Canvas. Here you must know the order in which the objects are, which sometimes can be complicated. Listing 3.7: Finding XAML Objects in C# TextBlock tb = t h i s. Children [ 1 ] as TextBlock ; 3.4 Deleting XAML Objects through the code After the TextBlock with the text Click me to Start has been clicked, we don t need it anymore. We can either set its opacity to 0, making it invisible, we can move him outside the visible part of the canvas, or we can delete it. In order to delete something, we must first find it. After that you just call the function Children.Remove(object) on the Canvas that has the object. Listing 3.8: Deleting XAML Objects in C# TextBlock tb = t h i s. Children [ 1 ] as TextBlock ; t h i s. Children. Remove( tb as Visual ) ; We can also delete everything thats inside a Canvas, with the function Clear. This is very useful when we have objects that we don t need, that are grouped in a Canvas, but we don t want to delete the Canvas. Deleting a Canvas, also deletes all the objects inside. 16

18 Chapter 4 Summary A Silverlight Application can be inserted in to any Web Page, regardless of the Code in which the Page is written. It doesn t matter if the page is a normal HTML page, a page written in PHP or ASP. The important part is the JavaScript code that initialize, after which the browser searches for the Plug In on the Client PC and then interprets the XAML file and the (compiled) code from the Application. The simple XAML structure allow for a hardcore Programmer that has no designing experience to easily design his own UI. Also a Designer should have no problem in creating the background code. Microsoft Expression Tools are also of a great use by creating Silverlight Applications. The Silverlight Community is pretty big, and rapidly growing. I personally can hardly wait for the Silverlight 2.0 Beta to come out 17

19 Bibliography [1] Main Page for Silverlight resources. [2] Link to the Silverlight SDK [3] Laurent Bugnion (GalaSoft) Personal Blog [4] Windows Presentation Foundation (WPF) 18

Silverlight Invaders Step 0: general overview The purpose of this tutorial is to create a small game like space invaders. The first thing we will do is set up the canvas of design some user controls (

More information

Building Rich Interactive Applications with Silverlight

Building Rich Interactive Applications with Silverlight Andrew, Dani and Dr. Z MSDN Roadshow development architecture you Maryland Pennsylvania Virginia Washington DC Building Rich Interactive Applications with Silverlight Zhiming Xue Z Architect Evangelist

More information

Silverlight. Daron Yöndem

Silverlight. Daron Yöndem Silverlight Daron Yöndem daron@yondem.com http://daron.yondem.com Me.Bio.ToString() -Project Management -Software Development -Technology Evangelism -Allinone! -AJAX -Silverlight -Expression Studio trainings.

More information

My own Silverlight textbox

My own Silverlight textbox My own Silverlight textbox Step 1: create a new project I use the beta 2 of Visual Studio 2008 ( codename Orcas ) for this tutorial. http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx. You can download

More information

Video Library: Silverlight 1.1 Case Example

Video Library: Silverlight 1.1 Case Example 28401c08online.qxd:WroxPro 9/12/07 9:29 PM Page 1 Video Library: Silverlight 1.1 Case Example For our Silverlight 1.1 example, we chose to port our Silverlight 1.0 example to 1.1. This provides a good

More information

Windows Presentation Foundation. Jim Fawcett CSE687 Object Oriented Design Spring 2018

Windows Presentation Foundation. Jim Fawcett CSE687 Object Oriented Design Spring 2018 Windows Presentation Foundation Jim Fawcett CSE687 Object Oriented Design Spring 2018 References Pro C# 5 and the.net 4.5 Platform, Andrew Troelsen, Apress, 2012 Programming WPF, 2nd edition, Sells & Griffiths,

More information

Patrocinadores. Web Platforms. DEV002 The Microsoft Web Story. Jeff Prosise Cofounder, Wintellect ASP.NET 2.0 ASP.

Patrocinadores. Web Platforms. DEV002 The Microsoft Web Story. Jeff Prosise Cofounder, Wintellect ASP.NET 2.0 ASP. DEV002 The Microsoft Web Story Jeff Prosise jeffpro@wintellect.com Cofounder, Wintellect Patrocinadores Web Platforms ASP.NET 2.0 ASP.NET AJAX Control-centric programming model, rich services and features

More information

CS3240 Human-Computer Interaction Lab Sheet Lab Session 3 Designer & Developer Collaboration

CS3240 Human-Computer Interaction Lab Sheet Lab Session 3 Designer & Developer Collaboration CS3240 Human-Computer Interaction Lab Sheet Lab Session 3 Designer & Developer Collaboration Page 1 Overview In this lab, users will get themselves familarise with fact that Expression Blend uses the identical

More information

Introduction. Part I: Silverlight Fundamentals for ASP.NET Developers 1

Introduction. Part I: Silverlight Fundamentals for ASP.NET Developers 1 Introduction xxi Part I: Silverlight Fundamentals for ASP.NET Developers 1 Chapter 1: Silverlight in a Nutshell 3 Uphill Struggle 3 Rich Client or Web Reach? 4 Silverlight Steps In 4 The Impact of Silverlight

More information

CHANNEL9 S WINDOWS PHONE 8.1 DEVELOPMENT FOR ABSOLUTE BEGINNERS

CHANNEL9 S WINDOWS PHONE 8.1 DEVELOPMENT FOR ABSOLUTE BEGINNERS CHANNEL9 S WINDOWS PHONE 8.1 DEVELOPMENT FOR ABSOLUTE BEGINNERS Full Text Version of the Video Series Published April, 2014 Bob Tabor http://www.learnvisualstudio.net Contents Introduction... 2 Lesson

More information

XAML. Chapter 2 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. of Babylon Understanding XAML

XAML. Chapter 2 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. of Babylon Understanding XAML XAML Chapter 2 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. of Babylon - 2014 Understanding XAML Developers realized long ago that the most efficient way to tackle

More information

Silverlight memory board ( Part 2 )

Silverlight memory board ( Part 2 ) Silverlight memory board ( Part 2 ) In the first part this tutorial we created a new Silverlight project and designed the user interface. In this part, we will add some code to the project to make the

More information

Index LICENSED PRODUCT NOT FOR RESALE

Index LICENSED PRODUCT NOT FOR RESALE Index LICENSED PRODUCT NOT FOR RESALE A Absolute positioning, 100 102 with multi-columns, 101 Accelerometer, 263 Access data, 225 227 Adding elements, 209 211 to display, 210 Animated boxes creation using

More information

CS3240 Human-Computer Interaction Lab Sheet Lab Session 4 Media, Ink, & Deep Zoom

CS3240 Human-Computer Interaction Lab Sheet Lab Session 4 Media, Ink, & Deep Zoom CS3240 Human-Computer Interaction Lab Sheet Lab Session 4 Media, Ink, & Deep Zoom CS3240 Lab SEM 1 2009/2010 Page 1 Overview In this lab, you will get familiarized with interactive media elements such

More information

Getting Started. Despite all the wonderful things you can say about CHAPTER 1 IN THIS CHAPTER

Getting Started. Despite all the wonderful things you can say about CHAPTER 1 IN THIS CHAPTER CHAPTER 1 Despite all the wonderful things you can say about HTML, CSS, and JavaScript, I think most people doing a lot of web-based development would agree that they form a pretty poor environment for

More information

BCIS 4650 Visual Programming for Business Applications

BCIS 4650 Visual Programming for Business Applications BCIS 4650 Visual Programming for Business Applications XAML Controls (That You Will, or Could, Use in Your BCIS 4650 App i.e., a Subset) 1 What is a XAML Control / Element? Is a Toolbox class which, when

More information

Windows Presentation Foundation Programming Using C#

Windows Presentation Foundation Programming Using C# Windows Presentation Foundation Programming Using C# Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.

More information

CS3240 Human-Computer Interaction

CS3240 Human-Computer Interaction CS3240 Human-Computer Interaction Lab Session 3 Supplement Creating a Picture Viewer Silverlight Application Page 1 Introduction This supplementary document is provided as a reference that showcases an

More information

This is the vector graphics "drawing" technology with its technical and creative beauty. SVG Inkscape vectors

This is the vector graphics drawing technology with its technical and creative beauty. SVG Inkscape vectors 1 SVG This is the vector graphics "drawing" technology with its technical and creative beauty SVG Inkscape vectors SVG 2 SVG = Scalable Vector Graphics is an integrated standard for drawing Along with

More information

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과 16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과 목차 HTML5 Introduction HTML5 Browser Support HTML5 Semantic Elements HTML5 Canvas HTML5 SVG HTML5 Multimedia 2 HTML5 Introduction What

More information

Top 40.NET Interview Questions & Answers

Top 40.NET Interview Questions & Answers Top 40.NET Interview Questions & Answers 1) Explain what is.net Framework? The.Net Framework is developed by Microsoft. It provides technologies and tool that is required to build Networked Applications

More information

Scalable Vector Graphics (SVG) vector image World Wide Web Consortium (W3C) defined with XML searched indexed scripted compressed Mozilla Firefox

Scalable Vector Graphics (SVG) vector image World Wide Web Consortium (W3C) defined with XML searched indexed scripted compressed Mozilla Firefox SVG SVG Scalable Vector Graphics (SVG) is an XML-based vector image format for twodimensional graphics with support for interactivity and animation. The SVG specification is an open standard developed

More information

Flash Image Enhancer Manual DMXzone.com Flash Image Enhancer Manual

Flash Image Enhancer Manual DMXzone.com Flash Image Enhancer Manual Flash Image Enhancer Manual Copyright 2009 All Rights Reserved Page 1 of 62 Index Flash Image Enhancer Manual... 1 Index... 2 About Flash Image Enhancer... 3 Features in Detail... 3 Before you begin...

More information

Windows Presentation Foundation

Windows Presentation Foundation Windows Presentation Foundation CS 525 John Stites Table of Contents Introduction... 3 Separation of Presentation and Behavior... 3 XAML Object Elements... 3 2-D Graphics... 6 3-D Graphics... 9 Microsoft

More information

COPYRIGHTED MATERIAL. Part I: Getting Started. Chapter 1: Introducing Flex 2.0. Chapter 2: Introducing Flex Builder 2.0. Chapter 3: Flex 2.

COPYRIGHTED MATERIAL. Part I: Getting Started. Chapter 1: Introducing Flex 2.0. Chapter 2: Introducing Flex Builder 2.0. Chapter 3: Flex 2. 02671c01.qxd:02671c01 4/20/07 11:24 AM Page 1 Part I: Getting Started Chapter 1: Introducing Flex 2.0 Chapter 2: Introducing Flex Builder 2.0 Chapter 3: Flex 2.0 Basics Chapter 4: Using Flex Builder 2.0

More information

CPSC Tutorial 6

CPSC Tutorial 6 CPSC 481 - Tutorial 6 More WPF (based on previous tutorials by Alice Thudt, Fateme Rajabiyazdi, David Ledo, Brennan Jones, Sowmya Somanath, and Kevin Ta) Introduction Contact Info li26@ucalgary.ca Please

More information

Telerik Corp. Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide

Telerik Corp. Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide Contents Create your First Test... 3 Standalone Web Test... 3 Standalone WPF Test... 6 Standalone Silverlight Test... 8 Visual Studio Plug-In

More information

Silverlight and ASP.NET Revealed

Silverlight and ASP.NET Revealed Available as a PDF Electronic Book or Print On Demand Silverlight and ASP.NET Revealed Understanding Silverlight 1 Creating a Silverlight Project 6 Silverlight Essentials 16 Silverlight and ASP.NET 30

More information

LAYOUT. Chapter 3 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. of Babylon

LAYOUT. Chapter 3 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. of Babylon LAYOUT Chapter 3 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. of Babylon - 2014 Loading and Compiling XAML (See Codes in your Textbook) There are three distinct coding

More information

Internet: An international network of connected computers. The purpose of connecting computers together, of course, is to share information.

Internet: An international network of connected computers. The purpose of connecting computers together, of course, is to share information. Internet: An international network of connected computers. The purpose of connecting computers together, of course, is to share information. WWW: (World Wide Web) A way for information to be shared over

More information

Weather forecast ( part 2 )

Weather forecast ( part 2 ) Weather forecast ( part 2 ) In the first part of this tutorial, I have consumed two webservices and tested them in a Silverlight project. In the second part, I will create a user interface and use some

More information

Introduction. Thank you for picking up Silverlight 1.0 Unleashed! IN THIS CHAPTER. . Who Should Read This Book?. Software Requirements

Introduction. Thank you for picking up Silverlight 1.0 Unleashed! IN THIS CHAPTER. . Who Should Read This Book?. Software Requirements Nathan_Intro_Iss 9/21/07 2:01 AM Page 1 IN THIS CHAPTER. Who Should Read This Book?. Software Requirements Thank you for picking up Silverlight 1.0 Unleashed! Silverlight is changing the way many people

More information

How to get a perfect 100 in Google PageSpeed Insights

How to get a perfect 100 in Google PageSpeed Insights How to get a perfect 100 in Google PageSpeed Insights And what might happen if you don't Follow Along http://goo.gl/fqfwyj @mcarper @NickWilde1990 Your site just went live after being under construction

More information

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5 Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives

More information

Chapter 1 Getting Started with Windows Presentation Foundation

Chapter 1 Getting Started with Windows Presentation Foundation Table of Contents Chapter 1 Getting Started with Windows Presentation Foundation 1 Exploring the New Features of WPF 4.0... 2 New WPF Controls for Business Applications... 3 Enhanced Support for WPF and

More information

XAML - BUTTON. The Button class represents the most basic type of button control. The hierarchical inheritance of Button class is as follows

XAML - BUTTON. The Button class represents the most basic type of button control. The hierarchical inheritance of Button class is as follows http://www.tutorialspoint.com/xaml/xaml_button.htm XAML - BUTTON Copyright tutorialspoint.com The Button class represents the most basic type of button control. The hierarchical inheritance of Button class

More information

1A Windows Presentation Foundation Explained. Rob Layzell CA Technologies

1A Windows Presentation Foundation Explained. Rob Layzell CA Technologies 1A Windows Presentation Foundation Explained Rob Layzell CA Technologies Legal This presentation was based on current information and resource allocations as of April 18, 2011 and is subject to change

More information

CPSC 481 Tutorial 10 Expression Blend. Brennan Jones (based on tutorials by Bon Adriel Aseniero and David Ledo)

CPSC 481 Tutorial 10 Expression Blend. Brennan Jones (based on tutorials by Bon Adriel Aseniero and David Ledo) CPSC 481 Tutorial 10 Expression Blend Brennan Jones bdgjones@ucalgary.ca (based on tutorials by Bon Adriel Aseniero and David Ledo) Expression Blend Enables you to build rich and compelling applications

More information

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 Course Overview This instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual

More information

Web Premium- Advanced UI Development Course. Duration: 08 Months. [Classroom and Online] ISO 9001:2015 CERTIFIED

Web Premium- Advanced UI Development Course. Duration: 08 Months. [Classroom and Online] ISO 9001:2015 CERTIFIED Weekdays:- 1½ hrs / 3 days Fastrack:- 1½hrs / Day [Classroom and Online] ISO 9001:2015 CERTIFIED ADMEC Multimedia Institute www.admecindia.co.in +91-9911782350, +91-9811818122 ADMEC is one of the best

More information

UI Elements. If you are not working in 2D mode, you need to change the texture type to Sprite (2D and UI)

UI Elements. If you are not working in 2D mode, you need to change the texture type to Sprite (2D and UI) UI Elements 1 2D Sprites If you are not working in 2D mode, you need to change the texture type to Sprite (2D and UI) Change Sprite Mode based on how many images are contained in your texture If you are

More information

ORB Education Quality Teaching Resources

ORB Education Quality Teaching Resources These basic resources aim to keep things simple and avoid HTML and CSS completely, whilst helping familiarise students with what can be a daunting interface. The final websites will not demonstrate best

More information

Creating Content with iad JS

Creating Content with iad JS Creating Content with iad JS Part 2 The iad JS Framework Antoine Quint iad JS Software Engineer ios Apps and Frameworks 2 Agenda Motivations and Features of iad JS Core JavaScript Enhancements Working

More information

Form into function. Getting prepared. Tutorial. Paul Jasper

Form into function. Getting prepared. Tutorial. Paul Jasper Tutorial Paul Jasper TABLE OF CONTENTS 1 Getting prepared 2 Adding a button to the form design 2 Making the button add tasks 3 Sending the XML data 4 Tidying up 5 Next time In the first episode, I showed

More information

Using Windows MovieMaker pt.1

Using Windows MovieMaker pt.1 Using Windows MovieMaker pt.1 Before you begin: Create and name (use your first name, or the title of your movie) a folder on the desktop of your PC. Inside of this folder, create another folder called

More information

Windows Presentation Foundation for.net Developers

Windows Presentation Foundation for.net Developers Telephone: 0208 942 5724 Email: info@aspecttraining.co.uk YOUR COURSE, YOUR WAY - MORE EFFECTIVE IT TRAINING Windows Presentation Foundation for.net Developers Duration: 5 days Overview: Aspect Training's

More information

Session 7 MS Word. Graphics. Inserting Clipart, and Graphics Modify graphics Position graphics

Session 7 MS Word. Graphics. Inserting Clipart, and Graphics Modify graphics Position graphics Session 7 MS Word Graphics Inserting Clipart, and Graphics Modify graphics Position graphics Table of Contents Session 7 Working with Graphics... 1 The Toolbar... 1 Drawing Toolbar... 1 Picture Toolbar...

More information

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT AGENDA 3. Advanced C# Programming 3.1 Events in ASP.NET 3.2 Programming C# Methods 4. ASP.NET Web Forms 4.1 Page Processing

More information

Edge Television Advertisement. -Open the 3 images of TV characters and the network logo in Photoshop. Your images must be high resolution images!

Edge Television Advertisement. -Open the 3 images of TV characters and the network logo in Photoshop. Your images must be high resolution images! -Open the 3 images of TV characters and the network logo in Photoshop. Your images must be high resolution images! -Use Layer Styles to add a White Stroke of 5 pixels to each image you cut out. This will

More information

ArtOfTest Inc. Automation Design Canvas 2.0 Beta Quick-Start Guide

ArtOfTest Inc. Automation Design Canvas 2.0 Beta Quick-Start Guide Automation Design Canvas 2.0 Beta Quick-Start Guide Contents Creating and Running Your First Test... 3 Adding Quick Verification Steps... 10 Creating Advanced Test Verifications... 13 Creating a Data Driven

More information

Fundamentals of XAML and Microsoft Expression Blend

Fundamentals of XAML and Microsoft Expression Blend 10553A - Version: 1 22 April 2018 Fundamentals of XAML and Microsoft Expression Blend Fundamentals of XAML and Microsoft Expression Blend 10553A - Version: 1 3 days Course Description: This 3-day course

More information

In this third unit about jobs in the Information Technology field we will speak about software development

In this third unit about jobs in the Information Technology field we will speak about software development In this third unit about jobs in the Information Technology field we will speak about software development 1 The IT professionals involved in the development of software applications can be generically

More information

Client Side JavaScript and AJAX

Client Side JavaScript and AJAX Client Side JavaScript and AJAX Client side javascript is JavaScript that runs in the browsers of people using your site. So far all the JavaScript code we've written runs on our node.js server. This is

More information

NE Fundamentals of XAML and Microsoft Expression Blend

NE Fundamentals of XAML and Microsoft Expression Blend NE-10553 Fundamentals of XAML and Microsoft Expression Blend Summary Duration 3 Days Audience Developers Level 200 Technology Microsoft Expression Blend Delivery Method Instructor-led (Classroom) Training

More information

Default Parameters and Shapes. Lecture 18

Default Parameters and Shapes. Lecture 18 Default Parameters and Shapes Lecture 18 Announcements PS04 - Deadline extended to October 31st at 6pm MT1 Date is now Tuesday 11/14 Warm-up Question #0: If there are 15 people and you need to form teams

More information

DOT NET SYLLABUS FOR 6 MONTHS

DOT NET SYLLABUS FOR 6 MONTHS DOT NET SYLLABUS FOR 6 MONTHS INTRODUCTION TO.NET Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate

More information

DOT.NET MODULE 6: SILVERLIGHT

DOT.NET MODULE 6: SILVERLIGHT UNIT 1 Introducing Silverlight DOT.NET MODULE 6: SILVERLIGHT 1. Silverlight and Visual Studio 2. Understanding Silverlight Websites 3. Creating a Stand-Alone Silverlight Project 4. Creating a Simple Silverlight

More information

Configuring and Customizing the ArcGIS Viewer for Silverlight. Katy Dalton

Configuring and Customizing the ArcGIS Viewer for Silverlight. Katy Dalton Configuring and Customizing the ArcGIS Viewer for Silverlight Katy Dalton kdalton@esri.com Agenda Overview of the ArcGIS Viewer for Silverlight Extensibility endpoints - Tools, Behaviors, Layouts, Controls

More information

Introduction to HTML & CSS. Instructor: Beck Johnson Week 5

Introduction to HTML & CSS. Instructor: Beck Johnson Week 5 Introduction to HTML & CSS Instructor: Beck Johnson Week 5 SESSION OVERVIEW Review float, flex, media queries CSS positioning Fun CSS tricks Introduction to JavaScript Evaluations REVIEW! CSS Floats The

More information

SASS Variables and Mixins Written by Margaret Rodgers. Variables. Contents. From Web Team. 1 Variables

SASS Variables and Mixins Written by Margaret Rodgers. Variables. Contents. From Web Team. 1 Variables SASS Variables and Mixins Written by Margaret Rodgers From Web Team Contents 1 Variables o 1.1 Nested Variables 2 Mixins 3 Inheritance Variables A variable in SASS works exactly the same as a variable

More information

Getting Started with ExcelMVC

Getting Started with ExcelMVC Getting Started with ExcelMVC Just like Silverlight or WPF (Windows Presentation Foundation), ExcelMVC facilitates a clear separation between your application s business objects (Models), its user interfaces

More information

Telerik Test Studio. Web/Desktop Testing. Software Quality Assurance Telerik Software Academy

Telerik Test Studio. Web/Desktop Testing. Software Quality Assurance Telerik Software Academy Telerik Test Studio Web/Desktop Testing Software Quality Assurance Telerik Software Academy http://academy.telerik.com The Lectors Iliyan Panchev Senior QA Engineer@ DevCloud Testing & Test Studio Quality

More information

Interview Question & Answers

Interview Question & Answers BASIC Interview Question & Answers OUR TRAINING YOUR CARRER QUESTIONS & ANSWERS OF HTML Ques: - What are the five possible values for position? Ans: - Values for position: static, relative, absolute, fixed,

More information

WPF and MVVM Study Guides

WPF and MVVM Study Guides 1. Introduction to WPF WPF and MVVM Study Guides https://msdn.microsoft.com/en-us/library/mt149842.aspx 2. Walkthrough: My First WPF Desktop Application https://msdn.microsoft.com/en-us/library/ms752299(v=vs.110).aspx

More information

Standard File Formats

Standard File Formats Standard File Formats Introduction:... 2 Text: TXT and RTF... 4 Grapics: BMP, GIF, JPG and PNG... 5 Audio: WAV and MP3... 8 Video: AVI and MPG... 11 Page 1 Introduction You can store many different types

More information

Terratype Umbraco Multi map provider

Terratype Umbraco Multi map provider Terratype Umbraco Multi map provider Installation Installing via Nuget This Umbraco package can be installed via Nuget The first part is the Terratype framework, which coordinates the different map providers,

More information

Road Map for Essential Studio 2010 Volume 1

Road Map for Essential Studio 2010 Volume 1 Road Map for Essential Studio 2010 Volume 1 Essential Studio User Interface Edition... 4 Essential Grid... 4 Essential Grid ASP.NET... 4 Essential Grid ASP.NET MVC... 4 Essential Grid Windows Forms...

More information

10262A VB: Developing Windows Applications with Microsoft Visual Studio 2010

10262A VB: Developing Windows Applications with Microsoft Visual Studio 2010 10262A VB: Developing Windows Applications with Microsoft Visual Studio 2010 Course Number: 10262A Course Length: 5 Days Course Overview In this course, experienced developers who know the basics of Windows

More information

Lecture 8: Images. CS 383 Web Development II Monday, February 19, 2018

Lecture 8: Images. CS 383 Web Development II Monday, February 19, 2018 Lecture 8: Images CS 383 Web Development II Monday, February 19, 2018 Images We can dynamically create images in PHP through the GD library o GD originally stood for gif draw o At one point, GIF support

More information

ITP 342 Mobile App Dev. Interface Builder in Xcode

ITP 342 Mobile App Dev. Interface Builder in Xcode ITP 342 Mobile App Dev Interface Builder in Xcode New Project From the Main Menu, select the File à New à Project option For the template, make sure Application is selected under ios on the left-hand side

More information

Web Design and Implementation

Web Design and Implementation Study Guide 3 - HTML and CSS - Chap. 13-15 Name: Alexia Bernardo Due: Start of class - first day of week 5 Your HTML files must be zipped and handed in to the Study Guide 3 dropbox. Chapter 13 - Boxes

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 4 5 6 8 Introduction to ASP.NET, Visual Studio and C# CST272 ASP.NET Static and Dynamic Web Applications Static Web pages Created with HTML controls renders exactly

More information

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links Using Dreamweaver CC 4 Creating a Template Now that the main page of our website is complete, we need to create the rest of the pages. Each of them will have a layout that follows the plan shown below.

More information

Dice in Google SketchUp

Dice in Google SketchUp A die (the singular of dice) looks so simple. But if you want the holes placed exactly and consistently, you need to create some extra geometry to use as guides. Plus, using components for the holes is

More information

INTRODUCTION TO ANDROID

INTRODUCTION TO ANDROID INTRODUCTION TO ANDROID 1 Niv Voskoboynik Ben-Gurion University Electrical and Computer Engineering Advanced computer lab 2015 2 Contents Introduction Prior learning Download and install Thread Android

More information

CS474 MULTIMEDIA TECHNOLOGY

CS474 MULTIMEDIA TECHNOLOGY CS474 MULTIMEDIA TECHNOLOGY Pr. G. Tziritas, Spring 2018 SVG Animation Tutorial G. Simantiris (TA) OVERVIEW Introduction Definitions SVG Creating SVGs SVG basics Examples Animation using software Examples

More information

DE Developing Windows Applications with Microsoft Visual Studio 2010

DE Developing Windows Applications with Microsoft Visual Studio 2010 DE-10262 Developing Windows Applications with Microsoft Visual Studio 2010 Summary Duration 5 Days Audience Developers Level 200 Technology Visual Studio Delivery Method Instructor-led (Classroom) Training

More information

Let's see a couple of examples

Let's see a couple of examples Javascript Examples Let's see a couple of examples Last 2 sessions we talked about Javascript Today: - Review Javascript basics by going through some examples - In the process we will also learn some new

More information

MIXPO GUIDE SERIES. Mixpo Platform User Guide: Overview of Rich Media Ad Units RICH MEDIA

MIXPO GUIDE SERIES. Mixpo Platform User Guide: Overview of Rich Media Ad Units RICH MEDIA MIXPO GUIDE SERIES Mixpo Platform User Guide: Overview of Rich Media Ad Units RICH MEDIA Welcome to Mixpo! The contents of this User Guide and appendices will help you effectively navigate the Mixpo platform

More information

Creating a Poster in Google SketchUp

Creating a Poster in Google SketchUp If you have digital image, or can find one online, you can easily make that image into a room poster. For this project, it helps to have some basic knowledge of Google SketchUp (though detailed instructions

More information

Table of contents. DMXzone Nivo Slider 3 DMXzone

Table of contents. DMXzone Nivo Slider 3 DMXzone Nivo Slider 3 Table of contents Table of contents... 1 About Nivo Slider 3... 2 Features in Detail... 3 Reference: Nivo Slider Skins... 22 The Basics: Creating a Responsive Nivo Slider... 28 Advanced:

More information

SHAPES & TRANSFORMS. Chapter 12 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ.

SHAPES & TRANSFORMS. Chapter 12 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. SHAPES & TRANSFORMS Chapter 12 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. of Babylon - 2014 Understanding Shapes The simplest way to draw 2-D graphical content

More information

Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09

Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09 Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09 Hello, today we will create another application called a math quiz. This

More information

CS3240 Human-Computer Interaction Lab Sheet Lab Session 2

CS3240 Human-Computer Interaction Lab Sheet Lab Session 2 CS3240 Human-Computer Interaction Lab Sheet Lab Session 2 Key Features of Silverlight Page 1 Overview In this lab, you will get familiarized with the key features of Silverlight, such as layout containers,

More information

DEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010

DEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010 CENTER OF KNOWLEDGE, PATH TO SUCCESS Website: DEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010 Course: 10262A; Duration: 5 Days; Instructor-led Time: 9.00am 5.00pm Break: 10.15am 10.30am

More information

CSI 3140 WWW Structures, Techniques and Standards. Browsers and the DOM

CSI 3140 WWW Structures, Techniques and Standards. Browsers and the DOM CSI 3140 WWW Structures, Techniques and Standards Browsers and the DOM Overview The Document Object Model (DOM) is an API that allows programs to interact with HTML (or XML) documents In typical browsers,

More information

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable();

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); Getting Started with protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); string connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings ["default"].connectionstring;!

More information

Introduction to WEB PROGRAMMING

Introduction to WEB PROGRAMMING Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks

More information

Microsoft CSharp

Microsoft CSharp Microsoft 70-511-CSharp Windows Apps Dev Microsoft.NET Framework 4 Download Full Version : https://killexams.com/pass4sure/exam-detail/70-511-csharp QUESTION: 59 You are developing a Windows Presentation

More information

Silverlight 3 Using Visual Basic

Silverlight 3 Using Visual Basic Silverlight 3 Using Visual Basic Student Guide Revision 3.0 Object Innovations Course 4246 Silverlight 3 Using Visual Basic Rev. 3.0 Student Guide Information in this document is subject to change without

More information

Build Your Own ASP.NET 4 Website Using C# & VB. Chapter 1: Introducing ASP.NET and the.net Pla;orm

Build Your Own ASP.NET 4 Website Using C# & VB. Chapter 1: Introducing ASP.NET and the.net Pla;orm Build Your Own ASP.NET 4 Website Using C# & VB Chapter 1: Introducing ASP.NET and the.net Pla;orm Outlines IntroducIon What is ASP.NET? Advantages of ASP.NET Installing the Required SoOware WriIng your

More information

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28 Programming Lab 1 (JS Hwk 3) Due Thursday, April 28 Lab You may work with partners for these problems. Make sure you put BOTH names on the problems. Create a folder named JSLab3, and place all of the web

More information

On the Web sun.com/aboutsun/comm_invest STAROFFICE 8 DRAW

On the Web sun.com/aboutsun/comm_invest STAROFFICE 8 DRAW STAROFFICE 8 DRAW Graphics They say a picture is worth a thousand words. Pictures are often used along with our words for good reason. They help communicate our thoughts. They give extra information that

More information

Developing Windows Applications with Microsoft Visual Studio 2010

Developing Windows Applications with Microsoft Visual Studio 2010 Developing Windows Applications with Microsoft Visual Studio 2010 Course 10262A: Five days; Instructor-Led Course Description: In this course, experienced developers who know the basics of Windows Forms

More information

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days 2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days Certification Exam This course will help you prepare for the following Microsoft Certified

More information

Lab 7: Silverlight API

Lab 7: Silverlight API Lab 7: Silverlight API Due Date: 02/07/2014 Overview Microsoft Silverlight is a development platform for creating engaging, interactive user experiences for Web, desktop, and mobile applications when online

More information

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects

More information

1.1 Customize the Layout and Appearance of a Web Page. 1.2 Understand ASP.NET Intrinsic Objects. 1.3 Understand State Information in Web Applications

1.1 Customize the Layout and Appearance of a Web Page. 1.2 Understand ASP.NET Intrinsic Objects. 1.3 Understand State Information in Web Applications LESSON 1 1.1 Customize the Layout and Appearance of a Web Page 1.2 Understand ASP.NET Intrinsic Objects 1.3 Understand State Information in Web Applications 1.4 Understand Events and Control Page Flow

More information

Arduino IDE Friday, 26 October 2018

Arduino IDE Friday, 26 October 2018 Arduino IDE Friday, 26 October 2018 12:38 PM Looking Under The Hood Of The Arduino IDE FIND THE ARDUINO IDE DOWNLOAD First, jump on the internet with your favorite browser, and navigate to www.arduino.cc.

More information