Which three actions should you perform in sequence?

DRAG DROP
You are developing a Windows Store app.
You need to allow the app to share content with other applications.
Which three actions should you perform in sequence? (To answer, move the appropriate
actions from the list of actions to the answer area and arrange them in the correct order.)

DRAG DROP
You are developing a Windows Store app.
You need to allow the app to share content with other applications.
Which three actions should you perform in sequence? (To answer, move the appropriate
actions from the list of actions to the answer area and arrange them in the correct order.)

Answer: See the explanation.

Explanation:

Box 1:

Box 2: Set the properties on the DataRequest object
Box 3:

Note:
The DataTransferManager object is the main starting point for any share operation. You’ll
add a datarequested event handler on the DataTransferManager object in the activated
event handler of your app. The datarequested event occurs when the will.
When adatarequestedevent occurs, your app receives aDataRequestobject. This object
contains aDataPackagethat you can use to provide the content that the user wants to share.
Example code (for step 3):
// This app is newly launched; register it as a share source.
var dataTransferManager =
Windows.ApplicationModel.DataTransfer.DataTransferManager.getForCurrentView();
Reference: How to share files (Windows Store apps using JavaScript and HTML) (Windows)



Leave a Reply 1

Your email address will not be published. Required fields are marked *


serk

serk

first call then add