/// <summary> /// Returns the <see cref="DataTransferManager"/> object associated with the current window. /// </summary> /// <returns>The <see cref="DataTransferManager"/> object associated with the current window.</returns> public static DataTransferManager GetForCurrentView() { if (instance == null) { instance = new DataTransferManager(); } return instance; }
private void MainPage_DataRequested(DataTransferManager sender, DataRequestedEventArgs args) { args.Request.Data.SetText("Hello world"); }