TAILIEUCHUNG - Essential Silverlight 3- P2

Essential Silverlight 3- P2: Khái quát Silverlight 3 không chỉ là lấp đầy với các chi tiết kỹ thuật, ví dụ rõ ràng, và thực hiện lời khuyên rằng sẽ làm cho bất kỳ ứng dụng Silverlight tốt hơn, nhưng Ashraf cũng bao gồm những hiểu biết rằng chỉ có thể đến từ một trong những nhà phát triển dẫn của thời gian chạy Silverlight. Từ đồ họa, văn bản, để phương tiện truyền thông cuốn sách này- có tất cả các thông tin cần thiết về thời gian chạy lõi 3 Silverlight | 18 Chapter 2 Applications The RootVisual cannot be modified here since it will be used in the startup page animation. Defer initialization to the startup event after your application has loaded. You can also connect event handlers for shutdown and error handling private void Application_Startup object sender StartupEventArgs e Create a hello world TextBlock TextBlock textBlock new TextBlock Hello World Create a container canvas Canvas canvas new Canvas textBlock Set the application root to display the canvas canvas In this example the entry point is the constructor that hooks up a Startup event handler that creates the application contents. You need to create your application contents in the Startup event handler after the startup screen loading animation. You can also hook up the Exit event to save state when your application is going away or hook up the UnhandledException handler event to get information about exceptions thrown during the execution of your application. Although you can use the structure shown previously to construct the application you should construct your application objects through XAML the Silverlight declarative XML instantiation language. You can conveniently edit XAML with WYSIWYG tools such as Expression Blend and XAML will load faster than the equivalent initialization code. Please purchase PDF Split-Merge on to remove this watermark. Application Components 19 PERFORMANCE TIP You may expect instantiating objects from code to be faster than parsing XAML but XAML is faster in most cases. The reason XAML is faster is that the XAML parser does not create the API objects you use to interact with elements but instead only creates an internal representation. After you start interacting with elements from code Silverlight creates API objects that

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.