我正在尝试创建这样的弹出窗口
// Create a Popup
var Pop = new Popup() { IsOpen = true };
// Create a StackPanel for the Buttons
var SPanel = new StackPanel() { Background = MainGrid.Background };
// Set the comment
var TxtBlockComment = new TextBlock { Margin = new Thickness(20, 5, 20, 5), Text = Obj.Comment };
// Set the value
var TxtBoxValue = new TextBox { Name = "MeasureValue" };
TxtBoxValue.KeyUp += (sender, e) => { VerifyKeyUp(sender, Measure); };
// Create the button
var ButtonFill = new Button { Content = Loader.GetString("ButtonAccept"), Margin = new Thickness(20, 5, 20, 5), Style = (Style)App.Current.Resources["TextButtonStyle"] };
ButtonFill.Click += (sender, e) => { Obj.Value = TxtBoxValue.Text; };
// Add the items to the StackPanel
SPanel.Children.Add(TxtBlockComment);
SPanel.Children.Add(TxtBoxValue);
SPanel.Children.Add(ButtonFill);
// Set the child on the popup
Pop.Child = SPanel;
我想在ButtonFill.Click
事件执行后通知主线程,这样我就可以继续该线程
但我该怎么做呢?