I'm using inside my static setup class the following method in my Winui3 App:
private static async void CheckDocumentsCopyDialog(string targetPath)
{
var resourceLoader = Windows.ApplicationModel.Resources.ResourceLoader.GetForViewIndependentUse();
ContentDialog checkDocumentsCopy = new ContentDialog()
{
Title = Constants.App.Name + " " + resourceLoader.GetString("MsgSetupCheckDocumentHeader"),
Content = resourceLoader.GetString("MsgSetupCheckDocumentsCopy") + " " + targetPath + ".",
CloseButtonText = "Ok"
};
await checkDocumentsCopy.ShowAsync();
}
As far as i know it follows Microsofts WinUI3 documentation. But i'm getting:
Maybe anyone knows, what i can do to fix it?