![]() |
VOOZH | about |
dotnet add package VaraniumSharp.WinUI --version 8.2.6
NuGet\Install-Package VaraniumSharp.WinUI -Version 8.2.6
<PackageReference Include="VaraniumSharp.WinUI" Version="8.2.6" />
<PackageVersion Include="VaraniumSharp.WinUI" Version="8.2.6" />Directory.Packages.props
<PackageReference Include="VaraniumSharp.WinUI" />Project file
paket add VaraniumSharp.WinUI --version 8.2.6
#r "nuget: VaraniumSharp.WinUI, 8.2.6"
#:package VaraniumSharp.WinUI@8.2.6
#addin nuget:?package=VaraniumSharp.WinUI&version=8.2.6Install as a Cake Addin
#tool nuget:?package=VaraniumSharp.WinUI&version=8.2.6Install as a Cake Tool
👁 Build status
👁 NuGet
👁 Coverage Status
👁 Bugs
👁 Code Smells
👁 Lines of Code
👁 Quality Gate Status
VaraniumSharp.WinUI is a VarniumSharp library with WinUI 3 helper classes and components. It can be used to implement certain features into a WinUI 3 project with minimal effort.
VaraniumSharp.WinUI relies on the attribute based dependency injection system provided by VaraniumSharp to handle the loading of it's components and to handle the customized layouts. As such a dependency injection package is required. Currently there are dependency injection packages for DryIoC and the Microsoft It is easy to create a custom wrapper for your preferred package as well, simply look at the implementation of one of the above packages as a basic guide.
Simply create a new WinUI 3 project, add the VaraniumSharp.WinUI package and one of the above mentioned IoC packages then add the following code to your App.xaml.cs file's OnLaunched method to bootstrap the main window.
// It is required to pre-load the assemblies that are auto-injected by VaraniumSharp otherwise their injections won't be picked up
AppDomain.CurrentDomain.Load(new AssemblyName("VaraniumSharp.WinUI"));
// Set up your IoC container and request that all classes are registered
var containerSetup = new ContainerSetup();
containerSetup.RetrieveClassesRequiringRegistration(true);
containerSetup.RetrieveConcretionClassesRequiringRegistration(true);
// Resolve a TabWindow instance from the container, configure it and then activate it to display it to the user
var tabWindow = containerSetup.Resolve<TabWindow>();
tabWindow.MinWidth = 750;
tabWindow.Backdrop = new AcrylicSystemBackdrop();
m_window = tabWindow;
m_window.Activate();
VaraniumSharp.WinUI is designed to be easy to use, but some of the configurations are a bit counter-intuitive. To see how to handle the basic configuration a test project is included in the GitHub repository. See the test project here
Feel free to open an issue on GitHub to request further assistance.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.19041 net8.0-windows10.0.19041 is compatible. net9.0-windows net9.0-windows was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.2.6 | 315 | 11/25/2024 |
| 8.2.5 | 263 | 11/25/2024 |
| 8.2.4 | 264 | 11/19/2024 |
| 8.2.3 | 307 | 8/6/2024 |
| 8.2.1 | 312 | 4/13/2024 |
| 8.2.0 | 287 | 4/12/2024 |
| 8.1.1 | 283 | 1/24/2024 |
| 8.1.0 | 259 | 1/22/2024 |
| 8.0.0 | 298 | 1/17/2024 |
| 7.3.1 | 251 | 1/16/2024 |
| 7.3.0 | 326 | 7/28/2023 |
| 7.2.0 | 322 | 5/31/2023 |
| 7.0.1 | 498 | 1/30/2023 |
| 7.0.0 | 484 | 1/29/2023 |
| 6.1.7 | 526 | 12/4/2022 |
| 6.1.6 | 560 | 12/1/2022 |
| 6.1.4 | 521 | 11/29/2022 |
| 6.1.3 | 552 | 11/28/2022 |
| 6.1.2 | 513 | 11/28/2022 |