Silverlight and ASP.NET Revealed

Although the Web is easily the most popular environment for business software, there are some things that web applications just can’t do, or can’t do very well. Even if you outfit your ASP.NET web pages with the latest cutting-edge JavaScript, you won’t be able to duplicate many of the capabilities...

Mô tả đầy đủ

Đã lưu trong:
Chi tiết về thư mục
Tác giả chính: MacDonald, Matthew
Định dạng: Sách
Ngôn ngữ:English
Được phát hành: Apress 2013
Những chủ đề:
Asp
Truy cập trực tuyến:http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34740
Các nhãn: Thêm thẻ
Không có thẻ, Là người đầu tiên thẻ bản ghi này!
Thư viện lưu trữ: Thư viện Trường Đại học Đà Lạt
id oai:scholar.dlu.edu.vn:DLU123456789-34740
record_format dspace
institution Thư viện Trường Đại học Đà Lạt
collection Thư viện số
language English
topic Asp
Cpmputer
spellingShingle Asp
Cpmputer
MacDonald, Matthew
Silverlight and ASP.NET Revealed
description Although the Web is easily the most popular environment for business software, there are some things that web applications just can’t do, or can’t do very well. Even if you outfit your ASP.NET web pages with the latest cutting-edge JavaScript, you won’t be able to duplicate many of the capabilities that desktop applications take for granted, such as animation, sound and video playback, and 3D graphics. And although you can use JavaScript to respond on the client to focus changes, mouse movements, and other “real-time” events, you still can’t build a complex interface that’s anywhere near as responsive as a window in a rich client application. (The saving grace of web programming is that you usually don’t need these frills. The benefits you gain—broad compatibility, high security, no deployment cost, and a scalable server-side model—outweigh the loss of a few niceties.)
format Book
author MacDonald, Matthew
author_facet MacDonald, Matthew
author_sort MacDonald, Matthew
title Silverlight and ASP.NET Revealed
title_short Silverlight and ASP.NET Revealed
title_full Silverlight and ASP.NET Revealed
title_fullStr Silverlight and ASP.NET Revealed
title_full_unstemmed Silverlight and ASP.NET Revealed
title_sort silverlight and asp.net revealed
publisher Apress
publishDate 2013
url http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34740
_version_ 1757665240830443520
spelling oai:scholar.dlu.edu.vn:DLU123456789-347402014-01-20T01:43:28Z Silverlight and ASP.NET Revealed MacDonald, Matthew Asp Cpmputer Although the Web is easily the most popular environment for business software, there are some things that web applications just can’t do, or can’t do very well. Even if you outfit your ASP.NET web pages with the latest cutting-edge JavaScript, you won’t be able to duplicate many of the capabilities that desktop applications take for granted, such as animation, sound and video playback, and 3D graphics. And although you can use JavaScript to respond on the client to focus changes, mouse movements, and other “real-time” events, you still can’t build a complex interface that’s anywhere near as responsive as a window in a rich client application. (The saving grace of web programming is that you usually don’t need these frills. The benefits you gain—broad compatibility, high security, no deployment cost, and a scalable server-side model—outweigh the loss of a few niceties.) About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v Understanding Silverlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Silverlight vs. Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Silverlight Adoption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Silverlight and WPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Installing Silverlight and the Visual Studio Extensions. . . . . . . . . . . 5 Creating a Silverlight Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 The HTML Entry Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 The Silverlight Initialization Script . . . . . . . . . . . . . . . . . . . . . . . . . 8 The XAML Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Understanding XAML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Silverlight Elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 XAML Namespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 The XAML Code-Behind. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Properties and Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Silverlight Compilation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Silverlight Essentials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 .NET Framework Classes in Silverlight . . . . . . . . . . . . . . . . . . . . . 17 The Canvas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Positioning Elements in a Canvas . . . . . . . . . . . . . . . . . . . . . . 19 Layering Elements in a Canvas . . . . . . . . . . . . . . . . . . . . . . . . 19 Dragging Circles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Interacting with HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Isolated Storage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Silverlight and ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ASP.NET Futures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 The Xaml Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 The Media Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Communicating Between Silverlight and ASP.NET . . . . . . . . . . . . 34 Drawing in 2D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Simple Shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Rectangle and Ellipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Polyline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Polygon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Paths and Geometries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Line, Rectangle, and Ellipse Geometries . . . . . . . . . . . . . . . . . 40 Combining Shapes with GeometryGroup . . . . . . . . . . . . . . . . . 41 Curves and Lines with PathGeometry . . . . . . . . . . . . . . . . . . . 42 Straight Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Arcs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Bézier Curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Brushes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Gradient Brushes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Using Brushes to Fill Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Transparency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Animation Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Defining an Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 The Animation Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 The Storyboard Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 The Event Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Starting an Animation with Code . . . . . . . . . . . . . . . . . . . . . . . 54 Configuring Animation Properties . . . . . . . . . . . . . . . . . . . . . . 55 An Interactive Animation Example . . . . . . . . . . . . . . . . . . . . . . . . 56 Transforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Using a Transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Animating a Transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 2013-07-18T02:55:53Z 2013-07-18T02:55:53Z 2007 Book 978-1-59059-939-6 http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34740 en application/pdf Apress