PrepAway - Latest Free Exam Questions & Answers

How should you complete the method?

HOTSPOT
You are developing an app that displays photos.
You need to create a method that displays informational text when a user hovers the pointer over a photo.
How should you complete the method? To answer, select the appropriate code segment from each list in the answer area.

Hot Area:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
Box 1: DependencyObject
Box 2: String
Box 3: ToolTip
Box 4: ToolTip
Box 5: ToolTipService

A ToolTip must be assigned to another UI element that is its owner. In Extensible Application Markup Language
(XAML), use the ToolTipService.Tooltip attached property to assign the ToolTip to an owner. In code, use the
ToolTipService.SetToolTip method to assign the ToolTip to an owner.
The SetToolTip(DependencyObject, Object) method sets the value of the ToolTipService.ToolTip XAML
attached property.
https://docs.microsoft.com/en-us/uwp/api/
windows.ui.xaml.controls.tooltipservice#Windows_UI_Xaml_Controls_ToolTipService_ToolTipProperty


Leave a Reply