private void OnTargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs e) { // this.NotifyUser($"User chose {e.ApplicationName}", NotifyType.StatusMessage); }
void App_TargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs args) { WAYLocalFactory.Instance.AddShareCount(); }
void OnTargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs args) { }
private void Dtm_TargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs args) { ShareTargetChosen?.Invoke(this, null); }
private void dataTransferManager_TargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs args) { DataTransferManager.GetForCurrentView().DataRequested -= OnDataRequested; }
private void DataTransfer_TargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs args) { #if DEBUG System.Diagnostics.Debug.WriteLine(args.ApplicationName); #endif }
private void SharePageViewModel_TargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs args) { ShareTarget = args.ApplicationName; }
// 选中了分享面板上的某个分享目标时 void dataTransferManager_TargetApplicationChosen(DataTransferManager sender, TargetApplicationChosenEventArgs args) { // 显示用户需要与其分享内容的应用程序的名称 lblMsg.Text = "分享给:" + args.ApplicationName; }
/// <summary> /// Record an event that the social sharing charm has been completed and /// which application data was shared with. /// </summary> /// <param name="sender">DataTransferManager responsible for the share.</param> /// <param name="e">Event containing details of which target application was chosen.</param> private void SocialShare(DataTransferManager sender, TargetApplicationChosenEventArgs e) { Client.TrackEvent("Share", "Charms", e.ApplicationName); }