exam questions

Exam 70-357 All Questions

View all questions & answers for the 70-357 exam

Exam 70-357 topic 1 question 15 discussion

Actual exam question from Microsoft's 70-357
Question #: 15
Topic #: 1
[All 70-357 Questions]

You are developing a Universal Windows Platform (UWP) app.
You need to provide a solution that moves the scroll bars of the ScrollViewer when a user rotates the mouse wheel.
Which two actions should you perform? Each correct answer presents part of the solution.

  • A. Evaluate the CurrentPoint.Properties.MouseWheelDelta property of the PointerEvenArgs object. Call the ChangeView() method of the ScrollViewer.
  • B. Update the XAML of the ScrollViewer to include the PointerWheelChanged event with a new event handler. Evaluate the Pointer.IsInRange property of the PointerRoutedEventArgs object within the event handler. Call the ChangeView() method of the ScrollViewer.
  • C. Add an event handler to the PointerRoutedAway event for the current window.
  • D. Evaluate the CurrentPoint.Properties.IsHorizontalMouseWheel property of the PointerEventArgs object. Call the ChangeView() method of the ScrollViewer.
  • E. Add an event handler to the PointerWheelChanged event for the current window. CD
Show Suggested Answer Hide Answer
Suggested Answer: Explanation 🗳️
The PointerRoutedAway event occurs on the process receiving input when the pointer input is routed to another process.
Reference:
https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.scrollviewer https://docs.microsoft.com/en-us/uwp/api/windows.ui.core.corewindow#Windows_UI_Core_CoreWindow_PointerWheelChanged

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Ofer
Highly Voted 5 years, 3 months ago
A,E. B- checks the isInRange of the mouse, not relevant. C-means that another process captures the mouse. Not relevant. d-not relevant.
upvoted 5 times
...
vahm
Most Recent 5 years, 5 months ago
Correct is D, E
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...