Soenneker.Blazor.Floating.Windows
4.0.244
Prefix Reserved
dotnet add package Soenneker.Blazor.Floating.Windows --version 4.0.244
NuGet\Install-Package Soenneker.Blazor.Floating.Windows -Version 4.0.244
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Blazor.Floating.Windows" Version="4.0.244" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Floating.Windows" Version="4.0.244" />
<PackageReference Include="Soenneker.Blazor.Floating.Windows" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Blazor.Floating.Windows --version 4.0.244
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Blazor.Floating.Windows, 4.0.244"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Blazor.Floating.Windows@4.0.244
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Blazor.Floating.Windows&version=4.0.244
#tool nuget:?package=Soenneker.Blazor.Floating.Windows&version=4.0.244
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<img src="https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png" alt="Logo" width="48"/> Soenneker.Blazor.Floating.Windows
Modern, customizable floating windows for Blazor
? Features
- ?? Draggable & Resizable � Move and resize windows with smooth, modern UX
- ?? Fully Customizable � Colors, fonts, borders, shadows, and more
- ?? Custom theming � Built-in typed support
- ??? Multiple Windows � Manage, stack, and focus with z-index
- ?? Responsive � Works on desktop and mobile
- ? Accessible � ARIA labels, keyboard navigation
- ? Event Callbacks � React to show, hide, drag, resize, and more
?? Installation
dotnet add package Soenneker.Blazor.Floating.Windows
// Program.cs
using Soenneker.Blazor.Floating.Windows.Registrars;
builder.Services.AddFloatingWindowAsScoped();
// _Imports.razor
@using Soenneker.Blazor.Floating.Windows
??? Basic Usage
<FloatingWindow Title="My Window" Width="400" Height="300">
<div>
<h3>Hello World!</h3>
<p>This is a floating window with your content.</p>
<button @onclick="() => window?.Close()">Close</button>
</div>
</FloatingWindow>
?? Theming & Styling
Built-in themes:
<FloatingWindow StyleOptions="FloatingWindowStyleOptions.DefaultLight">...</FloatingWindow>
<FloatingWindow StyleOptions="FloatingWindowStyleOptions.DefaultDark">...</FloatingWindow>
<FloatingWindow StyleOptions="FloatingWindowStyleOptions.DemoTheme">...</FloatingWindow>
Custom styling:
<FloatingWindow StyleOptions="new FloatingWindowStyleOptions
{
BackgroundColor = "#f8f9fa",
BorderColor = "#dee2e6",
BorderRadius = "12px",
TitleBarBackgroundColor = "#007bff",
TitleBarTextColor = "#ffffff",
CloseButtonTextColor = "#ffffff",
CloseButtonHoverBackgroundColor = "rgba(255, 255, 255, 0.2)",
CustomClass = "my-custom-window",
CustomStyles = new Dictionary<string, string>
{
["backdrop-filter"] = "blur(10px)",
["border"] = "2px solid #007bff"
}
}">...</FloatingWindow>
?? Advanced Example
<FloatingWindow @ref="myWindow"
Title="Advanced Window"
Width="500"
Height="400"
InitialX="100"
InitialY="100"
Draggable="true"
Resizable="true"
ShowCloseButton="true"
ShowTitleBar="true"
CenterOnShow="true"
ConstrainToViewport="true"
OnShow="OnWindowShow"
OnHide="OnWindowHide"
OnDragStart="OnDragStart"
OnDragEnd="OnDragEnd">
<div class="window-content">
<h3>Advanced Features</h3>
<p>This window demonstrates all the available features.</p>
<div class="controls">
<button @onclick="() => myWindow?.SetPosition(200, 200)">Move to (200,200)</button>
<button @onclick="() => myWindow?.SetSize(600, 500)">Resize to 600x500</button>
<button @onclick="() => myWindow?.BringToFront()">Bring to Front</button>
</div>
</div>
</FloatingWindow>
@code {
private FloatingWindow? myWindow;
private void OnWindowShow() => Console.WriteLine("Window shown!");
private void OnWindowHide() => Console.WriteLine("Window hidden!");
private void OnDragStart() => Console.WriteLine("Dragging started!");
private void OnDragEnd() => Console.WriteLine("Dragging ended!");
}
?? API Overview
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Title |
string |
"Window" |
Title bar text |
Width |
int? |
400 |
Initial width (px) |
Height |
int? |
300 |
Initial height (px) |
InitialX |
int? |
100 |
Initial X position |
InitialY |
int? |
100 |
Initial Y position |
Draggable |
bool? |
true |
Enable dragging |
Resizable |
bool? |
true |
Enable resizing |
ShowCloseButton |
bool? |
true |
Show close button |
ShowTitleBar |
bool? |
true |
Show title bar |
StyleOptions |
FloatingWindowStyleOptions |
DefaultLight |
Styling config |
Events
| Event | Description |
|---|---|
OnShow |
Window shown |
OnHide |
Window hidden |
OnDragStart |
Dragging started |
OnDragEnd |
Dragging ended |
Methods
| Method | Description |
|---|---|
Show() |
Show window |
Hide() |
Hide window |
Toggle() |
Toggle visibility |
GetPosition() |
Get (x, y) |
SetPosition(x, y) |
Set position |
GetSize() |
Get (width, height) |
SetSize(width, height) |
Set size |
BringToFront() |
Bring window to front |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Blazor.Extensions.EventCallback (>= 4.0.440)
- Soenneker.Blazor.Utils.ResourceLoader (>= 4.0.1623)
- Soenneker.Quark.Components.Core.Cancellable (>= 4.0.50)
- Soenneker.Utils.Json (>= 4.0.2476)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.244 | 0 | 3/12/2026 |
| 4.0.243 | 0 | 3/12/2026 |
| 4.0.242 | 0 | 3/12/2026 |
| 4.0.241 | 0 | 3/11/2026 |
| 4.0.240 | 19 | 3/11/2026 |
| 4.0.238 | 29 | 3/11/2026 |
| 4.0.237 | 26 | 3/11/2026 |
| 4.0.236 | 27 | 3/11/2026 |
| 4.0.235 | 34 | 3/11/2026 |
| 4.0.233 | 33 | 3/11/2026 |
| 4.0.232 | 27 | 3/11/2026 |
| 4.0.231 | 35 | 3/10/2026 |
| 4.0.230 | 33 | 3/10/2026 |
| 4.0.229 | 38 | 3/10/2026 |
| 4.0.228 | 39 | 3/10/2026 |
| 4.0.227 | 39 | 3/10/2026 |
| 4.0.226 | 40 | 3/9/2026 |
| 4.0.225 | 57 | 3/9/2026 |
| 4.0.224 | 65 | 3/9/2026 |
| 4.0.223 | 82 | 3/7/2026 |
Loading failed
Update dependency Soenneker.Blazor.Utils.ResourceLoader to 4.0.1623 (#465)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>