public MailReadWindow(string id) { InitializeComponent(); this.id = id; RA_Loading.Visibility = Visibility.Visible; PR_Loading.Visibility = Visibility.Visible; Dispatcher.InvokeAsync(async() => { var mail = await KakaoRequestClass.GetMailDetail(id); string imgUri = mail.sender.profile_thumbnail_url; if (Properties.Settings.Default.GIFProfile && mail.sender.profile_video_url_square_small != null) { imgUri = mail.sender.profile_video_url_square_small; } GlobalHelper.AssignImage(IMG_Profile, imgUri); MainWindow.SetClickObject(IMG_Profile); IMG_Profile.PreviewMouseLeftButtonDown += (s, e) => { e.Handled = true; try { TimeLineWindow tlw = new TimeLineWindow(mail.sender.id); tlw.Show(); tlw.Activate(); } catch (Exception) { MessageBox.Show("접근이 불가능한 스토리입니다."); } }; if (mail.@object?.background != null && [email protected]("image")) { GlobalHelper.AssignImage(IMG_Main, [email protected]); } TB_Main.Text = mail.content; TB_Name.Text = mail.sender.display_name + "님으로부터"; RA_Loading.Visibility = Visibility.Collapsed; PR_Loading.IsActive = false; }); }