private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
RunOnUiThread((async () =>
{
object result = await Main.ShowDialog(new NewDialog());
if ("true".Equals(result))
{
//点击确定
}
}));
}
wpf 模态框ShowDialog关闭结果接受
发表评论
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
RunOnUiThread((async () =>
{
object result = await Main.ShowDialog(new NewDialog());
if ("true".Equals(result))
{
//点击确定
}
}));
}