# Xui > Xui is a cross-platform .NET UI framework for building desktop, mobile, and browser applications in C#. Applications share views, layout, input, and Canvas drawing APIs. Platform runtimes connect those APIs to native windows or the browser. ## Website - [Home](./): Framework overview and an interactive desktop and phone gallery running DemoApp in WebAssembly. - [Docs](docs/): Guides to building applications with Xui. - [API](api/index.md): Reference for Xui namespaces, types, and members. ## Documentation - [Easing and transitions](docs/animation/easing/index.md) - [Frames and time](docs/animation/frames/index.md) - [Animation](docs/animation/index.md) - [Animate layout and drawing](docs/animation/layout-drawing/index.md) - [Animation lifetime and motion preferences](docs/animation/lifetime/index.md) - [Build an interactive drawing surface](docs/canvas/drawing-surface/index.md) - [Canvas fundamentals](docs/canvas/fundamentals/index.md) - [Images and SVG output](docs/canvas/images/index.md) - [Canvas and 2D drawing](docs/canvas/index.md) - [Colors, gradients, and compositing](docs/canvas/paints/index.md) - [Shapes, paths, and curves](docs/canvas/shapes-paths/index.md) - [Draw and measure text](docs/canvas/text/index.md) - [Transforms and coordinate spaces](docs/canvas/transforms/index.md) - [Accessible interaction](docs/controls/accessible-interaction/index.md) - [Controls and visual design](docs/controls/index.md) - [Lists and repeated content](docs/controls/lists/index.md) - [Text, fonts, and images](docs/controls/text-fonts-images/index.md) - [Themes and design tokens](docs/controls/themes/index.md) - [Core views and ToolKit widgets](docs/controls/widgets/index.md) - [Debugging and performance](docs/debugging/index.md) - [Application, window, and view](docs/first-app/application-window-view/index.md) - [Build your first page](docs/first-app/first-page/index.md) - [Your first app](docs/first-app/index.md) - [Understand the generated project](docs/first-app/project-structure/index.md) - [Run and iterate](docs/first-app/run-and-iterate/index.md) - [Getting Started](docs/getting-started/index.md) - [3D coordinates and cameras](docs/gpu/cameras/index.md) - [Choose Canvas or GPU rendering](docs/gpu/canvas-or-gpu/index.md) - [Depth, culling, and lighting](docs/gpu/depth-and-lighting/index.md) - [GPU and 3D drawing](docs/gpu/index.md) - [Build an interactive 3D view](docs/gpu/interactive-3d/index.md) - [Meshes, textures, and uniforms](docs/gpu/resources/index.md) - [Write shaders in C#](docs/gpu/shaders/index.md) - [Your first GPU triangle](docs/gpu/triangle/index.md) - [Follow an event through Xui](docs/input/event-routing/index.md) - [Shared pointer gestures](docs/input/gestures/index.md) - [Events and pointer input](docs/input/index.md) - [Mouse interaction on desktop](docs/input/mouse/index.md) - [Scrolling and trackpads](docs/input/scrolling/index.md) - [Touch interaction on mobile](docs/input/touch/index.md) - [Zoom and coordinate conversion](docs/input/zoom/index.md) - [Adapt to available space](docs/layout/adaptive/index.md) - [Grid layouts](docs/layout/grid/index.md) - [How layout works](docs/layout/how-layout-works/index.md) - [Layout and adaptive interfaces](docs/layout/index.md) - [Safe areas and device geometry](docs/layout/safe-areas/index.md) - [Scrolling content](docs/layout/scrolling/index.md) - [Stacks and FlexBox](docs/layout/stacks-flexbox/index.md) - [Create a page](docs/navigation/create-page/index.md) - [Desktop navigation](docs/navigation/desktop/index.md) - [Pages and navigation](docs/navigation/index.md) - [Mobile navigation and back](docs/navigation/mobile-back/index.md) - [Connect pages with NavigationShell](docs/navigation/navigation-shell/index.md) - [Overlays and additional windows](docs/navigation/overlays-windows/index.md) - [Page state and lifetime](docs/navigation/page-lifetime/index.md) - [Reference](docs/reference/index.md) - [Browser apps](docs/shipping/browser/index.md) - [Desktop apps](docs/shipping/desktop/index.md) - [Running and shipping](docs/shipping/index.md) - [Mobile apps](docs/shipping/mobile/index.md) - [Platform support and fallbacks](docs/shipping/platform-support/index.md) - [Troubleshooting setup and builds](docs/shipping/troubleshooting/index.md) - [Async work and the UI thread](docs/state/async-work/index.md) - [State and application services](docs/state/index.md) - [Application and window lifetime](docs/state/lifetime/index.md) - [Own and release resources](docs/state/resources/index.md) - [Services and dependency injection](docs/state/services/index.md) - [State and UI updates](docs/state/ui-updates/index.md) - [Test app logic and controls](docs/testing/choose-tests/index.md) - [Debug layout and input](docs/testing/debug-layout-input/index.md) - [Deterministic UI tests](docs/testing/deterministic/index.md) - [Testing](docs/testing/index.md) - [Inspect a running app](docs/testing/inspect-app/index.md) - [Measure performance and allocations](docs/testing/performance/index.md) - [Visual regression tests](docs/testing/visual-regressions/index.md) - [Custom text editors](docs/text-input/custom-editors/index.md) - [Editing and selection](docs/text-input/editing/index.md) - [TextBox and TextInput](docs/text-input/fields/index.md) - [Focus and keyboard navigation](docs/text-input/focus/index.md) - [IME and soft keyboards](docs/text-input/ime/index.md) - [Keyboard and text input](docs/text-input/index.md) - [Keys and shortcuts](docs/text-input/keys/index.md) - [Create a View subclass](docs/views/create-view/index.md) - [Custom views](docs/views/index.md) - [Build a reusable interactive control](docs/views/interactive-control/index.md) - [Attach, detach, and reuse](docs/views/lifetime/index.md) - [Measure and arrange a custom view](docs/views/measure-arrange/index.md) - [Render and invalidate](docs/views/render-invalidate/index.md) - [Transforms, clipping, and layers](docs/views/transforms-layers/index.md) ## API declarations Choose a complete assembly outline for the full API, or a smaller namespace outline beneath it for a focused task. The assembly file already contains its namespaces: you do not need to fetch both. All C# outlines contain public and protected declarations with XML documentation, without implementation bodies or private/internal members. They are reference outlines, not compilable application source. LoC includes XML comments and blank lines. - [Xui.Core - complete assembly](api/xui-core/index.cs) - 18,055 LoC. [Namespace guide](api/xui-core/index.md). - [Xui.Core.Abstract.Events - namespace outline](api/xui-core/xui-core-abstract-events/index.cs) - 749 LoC. - [Xui.Core.Abstract - namespace outline](api/xui-core/xui-core-abstract/index.cs) - 1,055 LoC. - [Xui.Core.Actual - namespace outline](api/xui-core/xui-core-actual/index.cs) - 402 LoC. - [Xui.Core.Animation - namespace outline](api/xui-core/xui-core-animation/index.cs) - 640 LoC. - [Xui.Core.Canvas.Composition.Commands.Records - namespace outline](api/xui-core/xui-core-canvas-composition-commands-records/index.cs) - 813 LoC. - [Xui.Core.Canvas.Composition.Commands - namespace outline](api/xui-core/xui-core-canvas-composition-commands/index.cs) - 348 LoC. - [Xui.Core.Canvas.Composition.GPU - namespace outline](api/xui-core/xui-core-canvas-composition-gpu/index.cs) - 83 LoC. - [Xui.Core.Canvas.Composition.Graphics - namespace outline](api/xui-core/xui-core-canvas-composition-graphics/index.cs) - 212 LoC. - [Xui.Core.Canvas.Composition - namespace outline](api/xui-core/xui-core-canvas-composition/index.cs) - 146 LoC. - [Xui.Core.Canvas.Filter - namespace outline](api/xui-core/xui-core-canvas-filter/index.cs) - 54 LoC. - [Xui.Core.Canvas.SVG - namespace outline](api/xui-core/xui-core-canvas-svg/index.cs) - 123 LoC. - [Xui.Core.Canvas.Symbols - namespace outline](api/xui-core/xui-core-canvas-symbols/index.cs) - 78 LoC. - [Xui.Core.Canvas - namespace outline](api/xui-core/xui-core-canvas/index.cs) - 2,289 LoC. - [Xui.Core.Curves2D - namespace outline](api/xui-core/xui-core-curves2d/index.cs) - 1,126 LoC. - [Xui.Core.Curves3D - namespace outline](api/xui-core/xui-core-curves3d/index.cs) - 297 LoC. - [Xui.Core.Debug - namespace outline](api/xui-core/xui-core-debug/index.cs) - 307 LoC. - [Xui.Core.DI - namespace outline](api/xui-core/xui-core-di/index.cs) - 131 LoC. - [Xui.Core.Math1D - namespace outline](api/xui-core/xui-core-math1d/index.cs) - 205 LoC. - [Xui.Core.Math2D - namespace outline](api/xui-core/xui-core-math2d/index.cs) - 961 LoC. - [Xui.Core.Math3D - namespace outline](api/xui-core/xui-core-math3d/index.cs) - 820 LoC. - [Xui.Core.Memory - namespace outline](api/xui-core/xui-core-memory/index.cs) - 69 LoC. - [Xui.Core.Middleware - namespace outline](api/xui-core/xui-core-middleware/index.cs) - 50 LoC. - [Xui.Core.Set - namespace outline](api/xui-core/xui-core-set/index.cs) - 63 LoC. - [Xui.Core.UI.Input - namespace outline](api/xui-core/xui-core-ui-input/index.cs) - 672 LoC. - [Xui.Core.UI.Layer - namespace outline](api/xui-core/xui-core-ui-layer/index.cs) - 581 LoC. - [Xui.Core.UI.Layout - namespace outline](api/xui-core/xui-core-ui-layout/index.cs) - 955 LoC. - [Xui.Core.UI - namespace outline](api/xui-core/xui-core-ui/index.cs) - 2,188 LoC. - [Xui.GPU.Backends.Glsl - namespace outline](api/xui-core/xui-gpu-backends-glsl/index.cs) - 40 LoC. - [Xui.GPU.Backends.Hlsl - namespace outline](api/xui-core/xui-gpu-backends-hlsl/index.cs) - 36 LoC. - [Xui.GPU.Backends.Metal - namespace outline](api/xui-core/xui-gpu-backends-metal/index.cs) - 47 LoC. - [Xui.GPU.Backends - namespace outline](api/xui-core/xui-gpu-backends/index.cs) - 36 LoC. - [Xui.GPU.Hardware - namespace outline](api/xui-core/xui-gpu-hardware/index.cs) - 272 LoC. - [Xui.GPU.IR - namespace outline](api/xui-core/xui-gpu-ir/index.cs) - 880 LoC. - [Xui.GPU.Resources - namespace outline](api/xui-core/xui-gpu-resources/index.cs) - 37 LoC. - [Xui.GPU.Shaders.Attributes - namespace outline](api/xui-core/xui-gpu-shaders-attributes/index.cs) - 151 LoC. - [Xui.GPU.Shaders.Intrinsics - namespace outline](api/xui-core/xui-gpu-shaders-intrinsics/index.cs) - 340 LoC. - [Xui.GPU.Shaders.Types - namespace outline](api/xui-core/xui-gpu-shaders-types/index.cs) - 1,278 LoC. - [Xui.GPU.Shaders - namespace outline](api/xui-core/xui-gpu-shaders/index.cs) - 76 LoC. - [Xui.Core.DI - complete assembly](api/xui-core-di/index.cs) - 49 LoC. [Namespace guide](api/xui-core-di/index.md). - [Xui.Core.DI - namespace outline](api/xui-core-di/xui-core-di/index.cs) - 49 LoC. - [Xui.Middleware.Emulator - complete assembly](api/xui-middleware-emulator/index.cs) - 206 LoC. [Namespace guide](api/xui-middleware-emulator/index.md). - [Xui.Middleware.Emulator - namespace outline](api/xui-middleware-emulator/xui-middleware-emulator/index.cs) - 206 LoC. - [Xui.Runtime.Android - complete assembly](api/xui-runtime-android/index.cs) - 69 LoC. [Namespace guide](api/xui-runtime-android/index.md). - [Xui.Runtime.Android.Actual - namespace outline](api/xui-runtime-android/xui-runtime-android-actual/index.cs) - 69 LoC. - [Xui.Runtime.Android.Host - complete assembly](api/xui-runtime-android-host/index.cs) - 53 LoC. [Namespace guide](api/xui-runtime-android-host/index.md). - [Android.Host - namespace outline](api/xui-runtime-android-host/android-host/index.cs) - 27 LoC. - [Xui.Runtime.Android.Actual - namespace outline](api/xui-runtime-android-host/xui-runtime-android-actual/index.cs) - 40 LoC. - [Xui.Runtime.Browser - complete assembly](api/xui-runtime-browser/index.cs) - 284 LoC. [Namespace guide](api/xui-runtime-browser/index.md). - [Xui.Runtime.Browser.Actual - namespace outline](api/xui-runtime-browser/xui-runtime-browser-actual/index.cs) - 284 LoC. - [Xui.Runtime.E2E - complete assembly](api/xui-runtime-e2e/index.cs) - 148 LoC. [Namespace guide](api/xui-runtime-e2e/index.md). - [Xui.Runtime.E2E - namespace outline](api/xui-runtime-e2e/xui-runtime-e2e/index.cs) - 148 LoC. - [Xui.Runtime.IOS - complete assembly](api/xui-runtime-ios/index.cs) - 4,001 LoC. [Namespace guide](api/xui-runtime-ios/index.md). - [Xui.GPU.Hardware.Metal - namespace outline](api/xui-runtime-ios/xui-gpu-hardware-metal/index.cs) - 91 LoC. - [Xui.Runtime.IOS.Actual - namespace outline](api/xui-runtime-ios/xui-runtime-ios-actual/index.cs) - 238 LoC. - [Xui.Runtime.IOS - namespace outline](api/xui-runtime-ios/xui-runtime-ios/index.cs) - 3,682 LoC. - [Xui.Runtime.MacOS - complete assembly](api/xui-runtime-macos/index.cs) - 4,975 LoC. [Namespace guide](api/xui-runtime-macos/index.md). - [Xui.GPU.Hardware.Metal - namespace outline](api/xui-runtime-macos/xui-gpu-hardware-metal/index.cs) - 93 LoC. - [Xui.Runtime.MacOS.Actual - namespace outline](api/xui-runtime-macos/xui-runtime-macos-actual/index.cs) - 307 LoC. - [Xui.Runtime.MacOS - namespace outline](api/xui-runtime-macos/xui-runtime-macos/index.cs) - 4,585 LoC. - [Xui.Runtime.Software - complete assembly](api/xui-runtime-software/index.cs) - 2,148 LoC. [Namespace guide](api/xui-runtime-software/index.md). - [Xui.GPU.Software - namespace outline](api/xui-runtime-software/xui-gpu-software/index.cs) - 583 LoC. - [Xui.Runtime.Software.Actual - namespace outline](api/xui-runtime-software/xui-runtime-software-actual/index.cs) - 184 LoC. - [Xui.Runtime.Software.Font - namespace outline](api/xui-runtime-software/xui-runtime-software-font/index.cs) - 851 LoC. - [Xui.Runtime.Software.Raster - namespace outline](api/xui-runtime-software/xui-runtime-software-raster/index.cs) - 96 LoC. - [Xui.Runtime.Software.Rasterization - namespace outline](api/xui-runtime-software/xui-runtime-software-rasterization/index.cs) - 62 LoC. - [Xui.Runtime.Software.Tessellate - namespace outline](api/xui-runtime-software/xui-runtime-software-tessellate/index.cs) - 205 LoC. - [Xui.Runtime.Software - namespace outline](api/xui-runtime-software/xui-runtime-software/index.cs) - 221 LoC. - [Xui.Runtime.Test - complete assembly](api/xui-runtime-test/index.cs) - 249 LoC. [Namespace guide](api/xui-runtime-test/index.md). - [Xui.Runtime.Test.Actual - namespace outline](api/xui-runtime-test/xui-runtime-test-actual/index.cs) - 92 LoC. - [Xui.Runtime.Test - namespace outline](api/xui-runtime-test/xui-runtime-test/index.cs) - 168 LoC. - [Xui.Runtime.Windows - complete assembly](api/xui-runtime-windows/index.cs) - 4,851 LoC. [Namespace guide](api/xui-runtime-windows/index.md). - [Xui.GPU.Hardware.D3D11 - namespace outline](api/xui-runtime-windows/xui-gpu-hardware-d3d11/index.cs) - 69 LoC. - [Xui.Runtime.Windows.Actual - namespace outline](api/xui-runtime-windows/xui-runtime-windows-actual/index.cs) - 209 LoC. - [Xui.Runtime.Windows.Win32 - namespace outline](api/xui-runtime-windows/xui-runtime-windows-win32/index.cs) - 1,404 LoC. - [Xui.Runtime.Windows - namespace outline](api/xui-runtime-windows/xui-runtime-windows/index.cs) - 3,184 LoC. - [Xui.ToolKit.UI - complete assembly](api/xui-toolkit-ui/index.cs) - 1,874 LoC. [Namespace guide](api/xui-toolkit-ui/index.md). - [Xui.ToolKit.UI.Branding - namespace outline](api/xui-toolkit-ui/xui-toolkit-ui-branding/index.cs) - 29 LoC. - [Xui.ToolKit.UI.Design - namespace outline](api/xui-toolkit-ui/xui-toolkit-ui-design/index.cs) - 780 LoC. - [Xui.ToolKit.UI.Drawing - namespace outline](api/xui-toolkit-ui/xui-toolkit-ui-drawing/index.cs) - 36 LoC. - [Xui.ToolKit.UI.Layer - namespace outline](api/xui-toolkit-ui/xui-toolkit-ui-layer/index.cs) - 94 LoC. - [Xui.ToolKit.UI.Mobile.Navigation - namespace outline](api/xui-toolkit-ui/xui-toolkit-ui-mobile-navigation/index.cs) - 220 LoC. - [Xui.ToolKit.UI.Navigation - namespace outline](api/xui-toolkit-ui/xui-toolkit-ui-navigation/index.cs) - 77 LoC. - [Xui.ToolKit.UI.Widgets - namespace outline](api/xui-toolkit-ui/xui-toolkit-ui-widgets/index.cs) - 710 LoC. ## Source - [Xui repository](https://github.com/xuiapps/sdk): Framework source, BlankApp starter, and DemoApp examples.