TAILIEUCHUNG - Professional C# 2008 phần 8

và tốc độ. Nếu bạn phải sử dụng indexers số, xác định hằng số trong phạm vi lớp học cho mỗi của các cột mà bạn sẽ được truy cập. Đoạn mã trên có thể được sử dụng để chọn dữ liệu từ bất kỳ cơ sở dữ liệu OLE DB, tuy nhiên, có một số SQL Server-cụ thể các lớp học có thể được sử dụng với sự cân bằng tính di động rõ ràng. Ví dụ sau đây là | Chapter 35 Advanced WPF StopStoryboard BeginStoryboardName beginMoveEye EventTrigger DockPanel Window Instead of starting and stopping the animation directly from event triggers in XAML you can easily control the animation from code behind. The buttons startAnimationButton and stopAnimationButton have the event handlers OnStartAnimation and OnStopAnimation associated with them. Within the event handlers the animation is started with the Begin method and stopped with the Stop method. With the Begin method the second parameter is set to true to allow you to control the animation with a stop request. public partial class Window1 public Window1 InitializeComponent OnStartAnimation OnStopAnimation void OnStartAnimation object sender RoutedEventArgs e eye true void OnStopAnimation object sender RoutedEventArgs e eye Now you can start the application and watch the eye move as soon as one of the Start buttons is clicked. Storyboard The Storyboard class inherits from the base class Timeline but can contain multiple timelines. The Storyboard class can be used to control timelines. The following table describes the methods of the Storyboard class. Storyboard Methods Description Begin The Begin method starts the animations associated with the storyboard. BeginAnimation With BeginAnimation you can start a single animation for a dependency property. CreateClock The CreateClock method returns a Clock object that you can use to control the animations. 1235 Part V Presentation Storyboard Methods Description Pause Resume With Pause and Resume you can pause and resume animations. Seek With the Seek method you can jump in time and move the animation to a specified time interval. Stop The Stop method halts the clock and stops the animation. The EventTrigger class makes it possible to define actions when events occur. The following table describes the properties of .

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.