Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 2.73 KB

README.md

File metadata and controls

77 lines (54 loc) · 2.73 KB

ModernWPF UI Library

Modern styles and controls for your WPF applications.

Features

Styled MahApps HamburgerMenu (Light)

Quick start

  1. Create a new WPF app.

  2. Install from NuGet Install-Package ModernWpfUI.

  3. Edit App.xaml to following:

<Application
    ...
    xmlns:ui="http://schemas.modernwpf.com/2019">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ui:ThemeResources />
                <ui:XamlControlsResources />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
  1. Edit MainWindow.xaml to following:
<Window
    ...
    xmlns:ui="http://schemas.modernwpf.com/2019"
    ui:WindowHelper.UseModernWindowStyle="True">
    <ui:SimpleStackPanel Margin="12" Spacing="24">
        <TextBlock Text="My first ModernWPF app" Style="{StaticResource HeaderTextBlockStyle}" />
        <Button Content="I am a button" />
        <Button Content="I am an accent button" Style="{StaticResource AccentButtonStyle}" />
    </ui:SimpleStackPanel>
</Window>
  1. See the wiki for more information.

Screenshots

Styled MahApps HamburgerMenu (Dark)

Control Palette

Easily customize colors

ContentDialog

DataGrid

ItemsRepeater - UniformGridLayout

Custom title bar

Calendar

Menu

Progress controls

Color ramp

Accent color palette

High contrast mode