TAILIEUCHUNG - Apress pro Silverlight 3 in C# phần 3

Microsoft® Silverlight™ là một plug-in đa nền, đa trình duyệt nhằm cung cấp các ứng dụng giàu tương tác và các trải nghiệm media dựa trên .NET thế hệ kế tiếp cho Web. Silverlight cung cấp mô hình lập trình động hỗ trợ AJAX, VB, C#, Python, và Ruby, và tích hợp với các ứng dụng Web hiện tại. Silverlight hỗ trợ phân phối video chất lượng cao một cách nhanh chóng và hiệu quả đến tất cả các trình duyệt web lớn chạy trên nền Mac OS hoặc Windows | CHAPTER 3 LAYOUT xmlns http winfx 2006 xaml presentation xmlns x http winfx 2006 xaml xmlns toolkit clr-namespace assembly -- This container is required for rescaling. -- toolkit Viewbox -- This container is the layout root of your ordinary user interface. Note that it uses a hard-coded size. -- Grid Background White Width 200 Height 225 Margin 3 3 10 3 . ColumnDefinition Width ColumnDefinition ColumnDefinition Width Auto ColumnDefinition TextBox 0 0 Margin 3 Height Auto VerticalAlignment Center Text Sample Text TextBox Button 0 1 Margin 3 Padding 2 Content Browse Button Grid toolkit Viewbox UserControl In this example the Viewbox preserves the aspect ratio of the resized content. In other words it sizes the content to fit the smallest dimension height or width rather than stretching it out of proportion to fill all the available space. If you want to use a Viewbox that does stretch its contents without regard for their proportions simply set the Stretch property to Fill. This isn t terribly useful for page scaling but it may make sense if you re using the Viewbox for another purpose say to size vector graphics in a button. Finally it s worth noting that you can create some interesting effects by placing a Viewbox in a Scrollviewer. For example you can manually set the size of Viewbox to be larger than the available space using its Height and Width properties and then scroll around inside the magnified content. You could use this technique to create a zoomable user interface increases the scale as the user drags a slider or turns the mouse wheel. You ll see an example of this technique with the mouse wheel in Chapter 4. SILVERLIGHT SUPPORT FOR BROWSER ZOOMING When accessed in some browsers and operating systems currently the most recent .

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.