Awes.UiKit.Wpf
0.2.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Awes.UiKit.Wpf --version 0.2.0
NuGet\Install-Package Awes.UiKit.Wpf -Version 0.2.0
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="Awes.UiKit.Wpf" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Awes.UiKit.Wpf" Version="0.2.0" />
<PackageReference Include="Awes.UiKit.Wpf" />
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 Awes.UiKit.Wpf --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Awes.UiKit.Wpf, 0.2.0"
#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 Awes.UiKit.Wpf@0.2.0
#: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=Awes.UiKit.Wpf&version=0.2.0
#tool nuget:?package=Awes.UiKit.Wpf&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Awes.UiKit.Wpf
Minimal integration layer for WPF applications.
- Target:
net10.0-windows - Provides a WPF hosting model with
WPFHostBuilderandWpfHost - Integrates with the layout manager and menu system from
Awes.UiKit.Core
This package focuses on WPF hosting, DI integration, and services.
Install
PM> Install-Package Awes.UiKit.Wpf
# or
> dotnet add package Awes.UiKit.Wpf
Quick Start
1. WPF application startup (App.xaml.cs)
using Awes.UiKit;
using Awes.UiKit.Wpf.Builder;
using Awes.UiKit.Wpf.Service;
using Microsoft.Extensions.DependencyInjection;
public partial class App : Application
{
public App()
{
this.InitializeComponent();
WpfHostBuilder.CreateBuilder()
.ConfigureServices(services =>
{
services.AddSingleton<ILayoutManagerService, LayoutManagerService>();
services.AddScoped<DashBoardView>();
services.AddScoped<TestContentView>();
services.AddScoped<TestViewModel>();
})
.ConfigureStartPage<MainPage>()
.Build();
}
}
2. Register menus in your page
using Awes.UiKit;
using Awes.UiKit.Service;
public partial class MainPage : Page
{
private bool _menuInitialized;
public MainPage()
{
InitializeComponent();
Loaded += Page_Loaded;
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
if (_menuInitialized)
{
return;
}
_menuInitialized = true;
var serviceProvider = AwesUiKit.GetServiceProvider();
var layoutService = serviceProvider?.GetService(typeof(ILayoutManagerService)) as ILayoutManagerService;
layoutService?.AddMenu("Dashboard", typeof(DashBoardView), typeof(TestViewModel));
layoutService?.AddMenu("Test", typeof(TestContentView), typeof(TestViewModel));
}
}
Dependencies
- .NET 10.0
- Microsoft.Extensions.DependencyInjection
- Awes.UiKit.Core
License
MIT
Source & issues: https://github.com/JakobSung/Awes.UiKit
NuGet Package Metadata
<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>Awes.UiKit.Wpf</PackageId>
<Version>0.1.0</Version>
<Authors>Awes</Authors>
<Company>Awes</Company>
<Description>Minimal integration layer for **WPF** applications.</Description>
<PackageTags>wpf;ui;layout;menu;mvvm;xaml</PackageTags>
<RepositoryUrl>https://github.com/JakobSung/Awes.UiKit</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://github.com/JakobSung/Awes.UiKit</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.NuGet.md</PackageReadmeFile>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Awes.UiKit.Control\Awes.UiKit.Control.csproj" />
<ProjectReference Include="..\Awes.UiKit.Core\Awes.UiKit.Core\Awes.UiKit.Core.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="README.NuGet.md" Pack="true" PackagePath="/" />
<None Include="..\LICENSE" Pack="true" PackagePath="/" />
</ItemGroup>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-windows7.0
- Awes.UiKit.Control (>= 0.2.0)
- Awes.UiKit.Core (>= 0.2.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.