小编Abd*_*mal的帖子

Material Design wpf c#中的MessageBox

我在 XAML Toolkit C# 中使用 Material Design,在 Material Design WPF C# 中使用 MessageBox,

图 1

图 2

我需要这样或更好的 MessageBox 设计

我试过使用 DialogHost 但发生此错误

没有加载的 DialogHost 实例。

private async void MenuPopupButton_OnClick(object sender, RoutedEventArgs e) {
    var sampleMessageDialog = new SampleMessageDialog {
        Message = {Text = "Goodbye"}
    };

    await DialogHost.Show(sampleMessageDialog, "RootDialog");            
}
Run Code Online (Sandbox Code Playgroud)

没有加载的 DialogHost 实例。

c# wpf xaml material-design material-design-in-xaml

2
推荐指数
1
解决办法
5800
查看次数

标签 统计

c# ×1

material-design ×1

material-design-in-xaml ×1

wpf ×1

xaml ×1