Skip to content

Commit 2320ee1

Browse files
authored
Update FindOnPage.md
1 parent f0b9e32 commit 2320ee1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

FindOnPage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ async void ConfigureAndExecuteFindAsync(string searchTerm){
8888
FindDirection = CoreWebView2FindDirection.Forward
8989
};
9090
91-
// Use the FindController to start the find operation
9291
CoreWebView2Find find = new CoreWebView2Find(findConfiguration);
9392
9493
// Assuming you want to use the default UI, adjust as necessary
@@ -102,7 +101,9 @@ async void ConfigureAndExecuteFindAsync(string searchTerm){
102101
await find.FindNextAsync();
103102
await find.FindNextAsync();
104103
await find.FindPreviousAsync();
105-
find.StopFind();
104+
105+
// Stop the active find session
106+
await find.StopFindAsync();
106107
107108
return true;
108109
}

0 commit comments

Comments
 (0)