# Download & Find Test Page

Test download management and find-in-page functionality with LiteView2

## Download Test Files

Click any link below to trigger a download. Use the Access form buttons to pause, resume, or cancel.

Small Binary (1 KB)
Random bytes for quick download test
Download 1 KB file
Medium Binary (100 KB)
Larger file to test progress tracking
Download 100 KB file
JSON Response
JSON data file from httpbin
Download JSON file
Image File (PNG)
Sample PNG image for MIME type testing
Download PNG image
Delayed Response (3s)
Slow download to test pause/resume
Download delayed file
Large Binary (500 KB)
Larger file to observe progress events
Download 500 KB file

## Find-in-Page Test Content

Use the Find controls in the Access form to search for keywords in the text below. Try searching for: WebView2, component, application, browser, or data.

### Modern Application Architecture

The WebView2 component provides a powerful foundation for building modern desktop applications that combine native performance with web-based user interfaces. By embedding a Chromium-based browser engine directly into a host application, developers can leverage the full power of HTML, CSS, and JavaScript while maintaining seamless integration with the native application layer. The WebView2 runtime ensures that the browser component stays up to date with the latest security patches and performance improvements, making it an ideal choice for enterprise application development.

Data exchange between the host application and the embedded browser component is handled through a robust messaging bridge. The host application can execute JavaScript within the browser context, inject data into the page, and receive callbacks when user interactions occur. This bidirectional communication channel enables developers to build sophisticated data-driven applications where the browser component serves as a rich rendering surface for application data. Complex data visualizations, interactive forms, and real-time dashboards become straightforward to implement using this architecture.

Download management is a critical feature for any browser-based component. The WebView2 control exposes a complete download lifecycle through events and methods. When a download starts, the host application receives notification with the source URL, suggested filename, and MIME type. During the download, progress events provide byte-level tracking that the application can use to display progress bars or status indicators. The application can pause, resume, or cancel any active download, giving users full control over file transfer operations. Completed downloads can be opened directly or their containing folder revealed in the file explorer.

Find-in-page functionality allows users to search through the rendered content of the browser component. The host application initiates a search by providing a query string, and the browser component highlights all matching instances within the page. Navigation between matches is supported through next and previous commands, with the active match index and total match count reported back to the host application. This enables the host application to display a match counter and provide keyboard shortcuts for efficient document navigation. The find operation can be stopped and the selection cleared programmatically when the user is done searching.

## Component Feature Matrix

Feature | Category | API Method | Status
--- | --- | --- | ---
Set Download Folder | Download | SetDownloadFolder | Available
Get Download Folder | Download | GetDownloadFolder | Available
Cancel Download | Download | CancelDownload | Available
Pause Download | Download | PauseDownload | Available
Resume Download | Download | ResumeDownload | Available
Open Downloaded File | Download | OpenDownloadedFile | Available
Open Download Folder | Download | OpenDownloadFolder | Available
Download Dialog State | Download | IsDefaultDownloadDialogOpen | Available
Download Behavior | Download | SetDefaultDownloadBehavior | Available
Clear Download History | Download | ClearDownloadHistory | Available
Download MIME Type | Download | GetDownloadMimeType | Available
Download Operation | Download | GetDownloadOperation | Available
Download List | Download | GetDownloadList | Available
Find in Page | Find | FindInPage | Available
Find Next Match | Find | FindNext | Available
Find Previous Match | Find | FindPrevious | Available
Stop Finding | Find | StopFinding | Available
Get Match Count | Find | GetFindMatchCount | Available
Get Active Match | Find | GetFindActiveMatchIndex | Available
Clear Selection | Find | ClearFindSelection | Available
Show Find Toolbar | Find | ShowFindToolbar | Available
Hide Find Toolbar | Find | HideFindToolbar | Available
Download Started | Event | DownloadStarting | Available
Download Progress | Event | DownloadProgressChanged | Available
Download Done | Event | DownloadCompleted | Available
Dialog State Changed | Event | IsDefaultDownloadDialogOpenChanged | Available
Match Count Changed | Event | FindMatchCountChanged | Available
Active Match Changed | Event | FindActiveMatchChanged | Available
Find Completed | Event | FindCompleted | Available