public MainPage() { //在需要检查更新的页面的构造函数里实例化更新控件 showUpdateInofControl = new JYUpdateSDK.View.ShowUpdateInfoControl(); this.InitializeComponent(); //九幽的第三方登陆 NavigationCacheMode = NavigationCacheMode.Required; JyUserInfoManager.LogincompletedEvent += JyUserInfoManager_LoginCompleted; JyFeedbackControl.FeedbackImageRequested += delegate { var fileOpenPicker = new FileOpenPicker(); fileOpenPicker.FileTypeFilter.Add(".png"); fileOpenPicker.FileTypeFilter.Add(".jpg"); fileOpenPicker.PickSingleFileAndContinue(); }; }
public MainPage() { //在需要检查更新的页面的构造函数里实例化更新控件 showUpdateInofControl = new JYUpdateSDK.View.ShowUpdateInfoControl(); this.InitializeComponent(); JyFeedbackControl.FeedbackImageRequested += async delegate { var fileOpenPicker = new FileOpenPicker(); fileOpenPicker.FileTypeFilter.Add(".png"); fileOpenPicker.FileTypeFilter.Add(".jpg"); var file = await fileOpenPicker.PickSingleFileAsync(); if (file != null) { _jyUserFeedbackSdkManager.UploadPicture(Constants.Appkey, Constants.SecretId, file); } }; }