Inkore.UI.WPF.Modern 0.9.16

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Inkore.UI.WPF.Modern --version 0.9.16
NuGet\Install-Package Inkore.UI.WPF.Modern -Version 0.9.16
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="Inkore.UI.WPF.Modern" Version="0.9.16" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Inkore.UI.WPF.Modern --version 0.9.16
#r "nuget: Inkore.UI.WPF.Modern, 0.9.16"
#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.
// Install Inkore.UI.WPF.Modern as a Cake Addin
#addin nuget:?package=Inkore.UI.WPF.Modern&version=0.9.16

// Install Inkore.UI.WPF.Modern as a Cake Tool
#tool nuget:?package=Inkore.UI.WPF.Modern&version=0.9.16

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

Home of the SampleApp (Light theme)

Quick Start

  1. Create a new WPF app.

  2. Add reference to Inkore.UI.WPF.Modern.dll and Inkore.UI.WPF.Modern.Controls.dll

  3. Add XML Namespace in App.xaml and MainWindow.xaml

    xmlns:ui="https://schemas.animasterstudios.com/lib/ui/wpf/modern"
    
  4. Add theme resources in the Application.Resources section of App.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>
    
  5. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5.2

  • net6.0-windows10.0.18362

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Inkore.UI.WPF.Modern:

Repository Stars
iNKORE-NET/UI.WPF.Modern
Modern (Fluent 2) styles and controls for your WPF applications
Version Downloads Last updated
0.9.29 99 5/28/2024
0.9.28 260 5/1/2024
0.9.27 223 4/14/2024
0.9.26.3 594 2/27/2024
0.9.26.2 197 2/27/2024
0.9.26.1 388 2/2/2024
0.9.26 261 1/31/2024
0.9.25.1 1,478 12/26/2023
0.9.24.2 474 12/12/2023
0.9.24.1 474 12/9/2023
0.9.23.1 478 12/2/2023
0.9.22 425 11/24/2023
0.9.21 472 10/27/2023
0.9.20.1 497 10/6/2023
0.9.19.2 474 10/2/2023
0.9.18 635 9/11/2023
0.9.17 551 8/22/2023
0.9.16 553 8/18/2023
0.9.15 617 8/12/2023
0.9.14.1 564 8/4/2023
0.9.14 595 8/4/2023
0.9.13 579 7/3/2023
0.9.12 552 7/1/2023
0.9.11 563 6/28/2023
0.9.10 567 6/26/2023
0.9.9.1 602 6/11/2023
0.9.9 559 6/10/2023
0.9.8.4 534 6/4/2023