Inkore.UI.WPF.Modern
0.9.9
Prefix Reserved
See the version list below for details.
dotnet add package Inkore.UI.WPF.Modern --version 0.9.9
NuGet\Install-Package Inkore.UI.WPF.Modern -Version 0.9.9
<PackageReference Include="Inkore.UI.WPF.Modern" Version="0.9.9" />
paket add Inkore.UI.WPF.Modern --version 0.9.9
#r "nuget: Inkore.UI.WPF.Modern, 0.9.9"
// Install Inkore.UI.WPF.Modern as a Cake Addin #addin nuget:?package=Inkore.UI.WPF.Modern&version=0.9.9 // Install Inkore.UI.WPF.Modern as a Cake Tool #tool nuget:?package=Inkore.UI.WPF.Modern&version=0.9.9
Inkore.UI.WPF.Modern
Modern (Fluent 2) styles and controls for your WPF applications.
Features
Modern styles and new features for the majority of the stock WPF controls.
Light and dark themes that can be easily customized. A high contrast theme is also included.
Additional controls to help you build modern applications. Some are ported from the Windows UI Library.
Targets .NET Framework 6.0. Runs on Windows 7 above, but we recommend Windows 10.0.18362.0 and higher
Quick Start
Create a new WPF app.
Add reference to
Inkore.UI.WPF.Modern.dll
andInkore.UI.WPF.Modern.Controls.dll
Add XML Namespace in
App.xaml
andMainWindow.xaml
xmlns:ui="https://schemas.animasterstudios.com/lib/ui/wpf/modern"
Add theme resources in the
Application.Resources
section ofApp.xaml
Minimum Sample:
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ui:ThemeResources/> <ui:XamlControlsResources /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>
Customizable Sample:
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ui:ThemeResources CanBeAccessedAcrossThreads="False"> <ui:ThemeResources.ThemeDictionaries> <ResourceDictionary x:Key="Light"> <SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="#FFEDEDED" /> </ResourceDictionary> <ResourceDictionary x:Key="Dark"> <SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="#FF202020" /> </ResourceDictionary> </ui:ThemeResources.ThemeDictionaries> </ui:ThemeResources> <ui:XamlControlsResources /> </ResourceDictionary.MergedDictionaries> <Style x:Key="OptionsPanelStyle" TargetType="ui:SimpleStackPanel"> <Setter Property="Spacing" Value="12" /> <Style.Resources> <Style BasedOn="{StaticResource {x:Type ComboBox}}" TargetType="ComboBox"> <Setter Property="MinWidth" Value="200" /> </Style> <Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="TextBox"> <Setter Property="MinWidth" Value="200" /> </Style> <Style BasedOn="{StaticResource {x:Type DatePicker}}" TargetType="DatePicker"> <Setter Property="MinWidth" Value="200" /> </Style> </Style.Resources> </Style> <Thickness x:Key="ControlPageContentMargin">24,0,24,20</Thickness> <Style x:Key="ControlPageContentPanelStyle" TargetType="ui:SimpleStackPanel"> <Setter Property="Margin" Value="{StaticResource ControlPageContentMargin}" /> <Setter Property="Spacing" Value="16" /> </Style> <Style x:Key="ScrollableContentDialogStyle" TargetType="ui:ContentDialog"> <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" /> <Style.Resources> <Thickness x:Key="ContentDialogContentMargin">24,0,24,0</Thickness> <Thickness x:Key="ContentDialogContentScrollViewerMargin">-24,0,-24,0</Thickness> <Thickness x:Key="ContentDialogTitleMargin">24,0,24,12</Thickness> </Style.Resources> </Style> <Style x:Key="RichTextBlockStyle" BasedOn="{StaticResource DefaultRichTextBoxStyle}" TargetType="RichTextBox"> <Setter Property="Padding" Value="0" /> <Setter Property="IsReadOnly" Value="True" /> <Setter Property="IsTabStop" Value="False" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="RichTextBox"> <ui:ScrollViewerEx x:Name="PART_ContentHost" /> </ControlTemplate> </Setter.Value> </Setter> <Style.Resources> <Style TargetType="Paragraph"> <Setter Property="Margin" Value="0" /> </Style> </Style.Resources> </Style> <CornerRadius x:Key="ControlCornerRadius">4</CornerRadius> <LinearGradientBrush x:Key="HeroImageGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1.5"> <GradientStop Offset="0" Color="Transparent" /> <GradientStop Offset="0.5" Color="{DynamicResource LayerFillColorDefault}" /> <GradientStop Offset="1" Color="{DynamicResource LayerFillColorDefault}" /> </LinearGradientBrush> <sys:Double x:Key="Breakpoint640Plus">641</sys:Double> <Thickness x:Key="PageHeaderDefaultPadding">0</Thickness> <Thickness x:Key="PageHeaderMinimalPadding">-4,0,12,0</Thickness> <Thickness x:Key="ControlElementScreenshotModePadding">67</Thickness> <Thickness x:Key="NavigationViewContentMargin">0,48,0,0</Thickness> <Thickness x:Key="NavigationViewContentGridBorderThickness">1,1,0,0</Thickness> <CornerRadius x:Key="NavigationViewContentGridCornerRadius">8,0,0,0</CornerRadius> <Thickness x:Key="NavigationViewHeaderMargin">56,34,0,0</Thickness> <SolidColorBrush x:Key="GridViewHeaderItemDividerStroke" Color="Transparent" /> <sys:String x:Key="ControlsName">All controls</sys:String> <sys:String x:Key="AppTitleName">ModernWPF Gallery</sys:String> <sys:String x:Key="WinUIVersion">SDK 0.10.0</sys:String> <sys:String x:Key="NewControlsName">What's New</sys:String> <Style x:Key="ControlPageScrollStyle" TargetType="ScrollViewer"> <Setter Property="VerticalScrollBarVisibility" Value="Auto" /> </Style> <Style x:Key="GridViewItemStyle" TargetType="ui:GridViewItem"> <Setter Property="Margin" Value="0,0,12,12" /> </Style> <Style x:Key="IndentedGridViewItemStyle" TargetType="ui:GridViewItem"> <Setter Property="Margin" Value="12,0,0,12" /> </Style> <Style x:Key="GridViewItemStyleSmall" TargetType="ui:GridViewItem"> <Setter Property="Margin" Value="0,0,0,12" /> <Setter Property="HorizontalContentAlignment" Value="Stretch" /> </Style> <Style x:Key="IndentedGridViewItemStyleSmall" TargetType="ui:GridViewItem"> <Setter Property="Margin" Value="12,0,12,12" /> <Setter Property="HorizontalContentAlignment" Value="Stretch" /> </Style> <sys:Double x:Key="TeachingTipMinWidth">50</sys:Double> </ResourceDictionary> </Application.Resources>
Enable Modern style (and backdrop if you want) for MainWindow in
MainWindow.xaml
ui:ThemeManager.IsThemeAware="True" ui:TitleBar.ExtendViewIntoTitleBar="True" ui:WindowHelper.SystemBackdropType="Mica" ui:TitleBar.IsBackButtonVisible="False" ui:WindowHelper.UseModernWindowStyle="True"
Contribution
Want to contribute? The team encourages community feedback and contributions.
If the project is not working properly, please file a report. We welcome any issues submitted on GitHub.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows10.0.18362 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5.2
- System.ValueTuple (>= 4.5.0)
-
net6.0-windows10.0.18362
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on Inkore.UI.WPF.Modern:
Repository | Stars |
---|---|
Valkirie/HandheldCompanion
ControllerService
|
|
iNKORE-NET/UI.WPF.Modern
Modern (Fluent 2) styles and controls for your WPF applications
|
|
WXRIW/Ink-Canvas
A fantastic Ink Canvas in WPF/C#, with fantastic support for Seewo Boards.
|
|
STBBRD/ZongziTEK-Blackboard-Sticker
用于白板一体机的桌面部件,有小黑板(布置作业)、启动台、课程表
|
Version | Downloads | Last updated |
---|---|---|
0.9.30 | 1,180 | 7/9/2024 |
0.9.29 | 824 | 5/28/2024 |
0.9.28 | 431 | 5/1/2024 |
0.9.27 | 374 | 4/14/2024 |
0.9.26.3 | 739 | 2/27/2024 |
0.9.26.2 | 235 | 2/27/2024 |
0.9.26.1 | 430 | 2/2/2024 |
0.9.26 | 295 | 1/31/2024 |
0.9.25.1 | 1,630 | 12/26/2023 |
0.9.24.2 | 502 | 12/12/2023 |
0.9.24.1 | 499 | 12/9/2023 |
0.9.23.1 | 497 | 12/2/2023 |
0.9.22 | 446 | 11/24/2023 |
0.9.21 | 497 | 10/27/2023 |
0.9.20.1 | 520 | 10/6/2023 |
0.9.19.2 | 509 | 10/2/2023 |
0.9.18 | 660 | 9/11/2023 |
0.9.17 | 570 | 8/22/2023 |
0.9.16 | 573 | 8/18/2023 |
0.9.15 | 635 | 8/12/2023 |
0.9.14.1 | 582 | 8/4/2023 |
0.9.14 | 614 | 8/4/2023 |
0.9.13 | 599 | 7/3/2023 |
0.9.12 | 595 | 7/1/2023 |
0.9.11 | 584 | 6/28/2023 |
0.9.10 | 587 | 6/26/2023 |
0.9.9.1 | 622 | 6/11/2023 |
0.9.9 | 580 | 6/10/2023 |
0.9.8.4 | 556 | 6/4/2023 |