单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You create a custom control named Wheel.
You need to ensure that the Speed property of Wheel can be animated.
What should you do?()
A. Inherit the DependencyObject class.
B. Declare the Speed property as a dependency property.
C. Declare an animation of the Speed property from within the code-behind file.
D. Implement the System.Windows.Media.Animation.IAnimatable interface with the Wheel class.
相关考题
-
单项选择题
You use Microsoft .NET Framework 4 to create a Windows application that can execute on client computers that run Windows Vista. You are creating a User Account Control (UAC) application manifest for the application. You need to ensure that users who are members of the local Administrators group do not receive a UAC prompt when the application executes. Which code fragment should you use? ()
A.
B.
C.
D. -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Forms application. The application includes a RichTextBox control and a ListBox control. The ListBox control is populated with a list of valid file names. The application allows users to drag a ListBox item to the RichTextBox control. You need to provide a visual indication that a file that is dragged can be dropped on the RichTextBox control. What should you do?()
A. Use a DoubleAnimation class.
B. Use a Storyboard animation class.
C. Use the DragDropEffects enumeration.
D. Use the DragAction enumeration. -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the drag-and-drop functionality. You need to ensure that the drag-and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form. Which enumeration member should you use?()
A. DragAction.Cancel
B. DragAction.Drop
C. DragDropEffects.None
D. DragDropEffects.All
