### Installation Source: https://context7.com/kikipoulet/sukiui/llms.txt Install SukiUI via NuGet package manager for Avalonia desktop applications. ```APIDOC ## Installation Install SukiUI via NuGet package manager for Avalonia desktop applications. ```bash dotnet add package SukiUI --version 6.0.0 ``` ``` -------------------------------- ### Show ContextMenu Example Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/controls/inputs/contextmenu.md Demonstrates how to attach a ContextMenu to a GlassCard control. This example showcases various MenuItem types, including enabled, disabled, icon-enabled, separators, and nested submenus. ```xml ``` -------------------------------- ### Stepper ViewModel Example Source: https://context7.com/kikipoulet/sukiui/llms.txt A C# ViewModel example for the SukiUI Stepper control, demonstrating how to manage the current step and define the available steps. ```csharp // ViewModel for stepper public class WizardViewModel { [ObservableProperty] private int _currentStep = 0; public IEnumerable Steps { get; } = new[] { "Select Files", "Configure Options", "Review", "Complete" }; } ``` -------------------------------- ### BusyArea Loading Overlay Examples Source: https://context7.com/kikipoulet/sukiui/llms.txt Shows how to use the SukiUI BusyArea control to display a loading overlay on content areas. Examples include overlaying a DataGrid and a form with input fields and a save button. ```xml ``` ```xml ``` -------------------------------- ### SukiWindow with Flat Background Style Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/controls/layout/sukiwindow.md Use this to apply a classic 'Flat' background style to your SukiWindow. This is a standard background option. ```xml ``` -------------------------------- ### Simple Flat Background Shader Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/theming/background.md This is the simplest SKSL shader, returning the base background color for every pixel. It utilizes the `iBase` and `iAlpha` uniforms provided by SukiUI. ```glsl vec4 main(vec2 fragCoord) { return vec4(iBase, iAlpha); } ``` -------------------------------- ### Basic ToggleSwitch Usage Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/controls/inputs/toggleswitch.md Use this snippet to display a ToggleSwitch. Set the 'IsChecked' property to 'True' to initialize it in the checked state. ```xml ``` -------------------------------- ### Busy/Loading Button in SukiUI (C#) Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/controls/inputs/button.md Control the busy or loading state of a button programmatically using the 'ShowProgress()' and 'HideProgress()' methods. ```csharp MyButton.ShowProgress(); MyButton.HideProgress(); ``` -------------------------------- ### TextBox with Prefix Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/controls/inputs/textbox.md Adds a prefix to the TextBox, useful for indicating units or formats, such as URLs. ```xml ``` -------------------------------- ### SukiWindow with Bubble Background Style Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/controls/layout/sukiwindow.md Use this to apply a 'Bubble' background style to your SukiWindow. This style enhances the glassmorphism design. ```xml ``` -------------------------------- ### Basic Button Style in SukiUI Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/controls/inputs/button.md The 'Basic' class provides a minimal button style, often used for simple actions. ```xml ``` -------------------------------- ### Confirmation Dialog with Multiple Buttons Source: https://context7.com/kikipoulet/sukiui/llms.txt Create dialogs with multiple action buttons, such as Cancel and Confirm. Buttons can be styled and configured to dismiss the dialog. ```csharp DialogManager.CreateDialog() .WithTitle("Confirm Delete") .WithContent("Are you sure you want to delete this item? This action cannot be undone.") .WithActionButton("Cancel", _ => { }, dismissOnClick: true) .WithActionButton("Delete", _ => DeleteItem(), dismissOnClick: true, "Flat", "Accent") .TryShow(); ``` -------------------------------- ### TabControl Styling Source: https://context7.com/kikipoulet/sukiui/llms.txt Standard TabControl implementation with SukiUI styling for organizing content into tabs. ```xml ``` -------------------------------- ### Button Loading State Control Source: https://context7.com/kikipoulet/sukiui/llms.txt Provides C# code to control the loading spinner visibility on a SukiUI button. ```csharp // Show loading spinner on button SaveButton.ShowProgress(); // Hide loading spinner SaveButton.HideProgress(); ``` -------------------------------- ### Flat Button Style in SukiUI Source: https://github.com/kikipoulet/sukiui/blob/main/docs/docs/documentation/controls/inputs/button.md Apply the 'Flat' class to create a button with no visible border or background by default. ```xml ```