0
INORDER mahappのカスタムダイアログを使用するには、WPFに示されたエラーが、私は私のプロジェクトに新しいウィンドウを追加し、次のコードからXAMLファイルを置き換えていますmahappカスタムダイアログ -
<Dialog:CustomDialog x:Class="GUIcode.Main_Window"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Closing="Window_Closing"
Loaded="Window_Opening"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
>
<textbox/>
</Dialog:CustomDialog>
その後、私のCシャープコード タイプ「ダイアログ:CustomDialog」が見つかりませんでした
using MahApps.Metro.Controls;
using MahApps.Metro.Controls.Dialogs;
private void Window_Opening(object sender, RoutedEventArgs e)
{
this.ShowLoginDialog();
}
public async void ShowLoginDialog()
{
DiagnosticDialog diag_dialog = new DiagnosticDialog();
await this.ShowMetroDialogAsync(diag_dialog);
}
しかし、継続的なエラーがあると言っ示されました。アセンブリ参照を見逃していないこと、および参照されているすべてのアセンブリが作成されていることを確認します。
MahApps.Metro.Controls.Dialogsは参照アセンブリに存在します。私は問題が実際にどこにあるのか理解していませんか?