關鍵代碼以下,如何使用Handler,還不清楚的請繼續搜索ide
internal sealed class WyzCefDialogHandler : CefDialogHandler
{
protected override bool OnFileDialog(CefBrowser browser, CefFileDialogMode mode, string title, string defaultFilePath, string[] acceptFilters, int selectedAcceptFilter, CefFileDialogCallback callback)
{
string[] filePaths=new string[1];
filePaths[0]= @"D:\Temp\Help_files\2016072213550813.png";
callback.Continue(0, filePaths);
return true;//return false;--false是取消的問題
}
}spa