oneappCookbook
oneapp cookbook
Recipes
Build a desktop app with HTML and CSS in C#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 appTest 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 appMake 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 appShow 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 elementRegister 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 AppImagePackage 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#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# appSwitch a OneApp desktop window between light and dark mode and change button colors with CSS theme tokens. Download and run the .NET 10 example.