///// <summary> ///// ///// </summary> //[Category("Data")] //public string LocalFileName //{ // get { return _localFileName; } // set // { // _localFileName = value; // // load the file if the browser is already initialized // if (_firstPageLoaded) // OpenLocalFile(); // } //} private void OpenLocalFile() { // strip anchors, etc. from any HTTP-path style local file names string strippedPath = LocalFileName; // removing anchors int hashIndex = LocalFileName.IndexOf('#'); if (hashIndex > 0) { strippedPath = LocalFileName.Remove(hashIndex); } // loading for first time so set the page to the LocalFileName if (File.Exists(strippedPath)) { Navigate(Path.GetFullPath(LocalFileName)); } }