-
Notifications
You must be signed in to change notification settings - Fork 727
Description
I'm using Version="2.0.0-prealpha.1895"
I construct a FileDialog view as follows:
`
var dlg = new FileDialog()
{
Path = Environment.CurrentDirectory,
OpenMode = OpenMode.Directory,
AllowsMultipleSelection = false,
MustExist = true,
Title = "Select location to store backups",
};
Application.Run(dlg, ErrorHandler);
bool canceled = dlg.Canceled;
var folderName = dlg.Path;
dlg.Dispose();
`
When I run the app and open the dialog.
When hitting the "Up" button, the dialog closes and the dlg.Path is filled with the upper path. I don't want the dialog to close in this case. Is that possible?
When hitting the cancel button, the dialog is closed, but dlg.Canceled is set to false; This just seems wrong.
Is there something I haven't set? There doesn't appear to be any obvious properties to avoid these situations.
Also, in the same application I use a FileDialog to select files, and in that case, the dialog behaves as expected so it seems like it is only in OpenMode.DIrectory where these things occur.
This app is cross compiled onto Windows, Linux 64bit and Linux Arm 32 and 64 bit. The behaviour is consistent across all OSs
Again, if I am doing something wrong, please let me know.
Cheers,
Dan