---
title: "oneapp cookbook"
url: https://recursiveai.org/oneapp/cookbook/
description: "8 OneApp recipes, each with complete code."
version: "1.0.0"
---

# oneapp cookbook

## Recipes

- [Build a desktop app with HTML and CSS in C#](https://recursiveai.org/oneapp/cookbook/build-desktop-app-with-html-css/index.md): Build a C# desktop app with HTML and CSS. Put the markup in a string and run it in a native OneApp window without a web view.
- [Automate UI tests for a C# desktop app](https://recursiveai.org/oneapp/cookbook/drive-desktop-app-from-tests/index.md): Test a C# desktop app without a display. Launch a Debug build, click a button by CSS selector, and assert the new text with the OneApp CLI.
- [Show desktop notifications from a C# tray app](https://recursiveai.org/oneapp/cookbook/show-desktop-notification-from-tray-app/index.md): Make a system tray menu in C# and send a desktop notification when the user chooses an item. See what each desktop needs to display it.
- [Open a native file dialog in a C# desktop app](https://recursiveai.org/oneapp/cookbook/open-native-file-picker/index.md): Show the system’s open file dialog from a C# app. Filter for text files, handle Cancel, and use the selected paths in OneApp.
- [Use a C# WebAssembly component as a custom element](https://recursiveai.org/oneapp/cookbook/export-csharp-component-as-custom-element/index.md): Register a OneUI component with BrowserApp.Define, pass it an HTML attribute, and render it as a custom element in an ordinary web page.
- [Package a C# desktop app as a .deb or AppImage](https://recursiveai.org/oneapp/cookbook/package-dotnet-desktop-app-for-linux/index.md): Package a OneApp desktop project for Linux as a Debian package or a standalone AppImage. See what each artifact contains and how users run it.
- [Confirmation dialog and toast in C#](https://recursiveai.org/oneapp/cookbook/show-dialog-and-toast-with-ui-kit/index.md): Ask for confirmation with OneApp’s AlertDialog, then show a success toast only after the user confirms. Run the complete .NET 10 desktop example.
- [Dark mode and theme colors in a C# app](https://recursiveai.org/oneapp/cookbook/theme-desktop-ui-kit/index.md): Switch a OneApp desktop window between light and dark mode and change button colors with CSS theme tokens. Download and run the .NET 10 example.
