iNKORE.UI.WPF.Modern
0.9.21
Prefix Reserved
See the version list below for details.
dotnet add package iNKORE.UI.WPF.Modern --version 0.9.21
NuGet\Install-Package iNKORE.UI.WPF.Modern -Version 0.9.21
<PackageReference Include="iNKORE.UI.WPF.Modern" Version="0.9.21" />
paket add iNKORE.UI.WPF.Modern --version 0.9.21
#r "nuget: iNKORE.UI.WPF.Modern, 0.9.21"
// Install iNKORE.UI.WPF.Modern as a Cake Addin #addin nuget:?package=iNKORE.UI.WPF.Modern&version=0.9.21 // Install iNKORE.UI.WPF.Modern as a Cake Tool #tool nuget:?package=iNKORE.UI.WPF.Modern&version=0.9.21
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 (3)
Showing the top 3 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.
|
Version | Downloads | Last updated |
---|---|---|
0.9.30 | 697 | 7/9/2024 |
0.9.29 | 631 | 5/28/2024 |
0.9.28 | 413 | 5/1/2024 |
0.9.27 | 313 | 4/14/2024 |
0.9.26.3 | 712 | 2/27/2024 |
0.9.26.2 | 215 | 2/27/2024 |
0.9.26.1 | 413 | 2/2/2024 |
0.9.26 | 275 | 1/31/2024 |
0.9.25.1 | 1,594 | 12/26/2023 |
0.9.24.2 | 483 | 12/12/2023 |
0.9.24.1 | 480 | 12/9/2023 |
0.9.23.1 | 482 | 12/2/2023 |
0.9.22 | 430 | 11/24/2023 |
0.9.21 | 478 | 10/27/2023 |
0.9.20.1 | 501 | 10/6/2023 |
0.9.19.2 | 488 | 10/2/2023 |
0.9.18 | 641 | 9/11/2023 |
0.9.17 | 555 | 8/22/2023 |
0.9.16 | 555 | 8/18/2023 |
0.9.15 | 620 | 8/12/2023 |
0.9.14.1 | 568 | 8/4/2023 |
0.9.14 | 597 | 8/4/2023 |
0.9.13 | 583 | 7/3/2023 |
0.9.12 | 557 | 7/1/2023 |
0.9.11 | 567 | 6/28/2023 |
0.9.10 | 571 | 6/26/2023 |
0.9.9.1 | 607 | 6/11/2023 |
0.9.9 | 564 | 6/10/2023 |
0.9.8.4 | 539 | 6/4/2023 |