Open source WPF control library: ModernWpf

Open source WPF control library: ModernWpf

It has a very beautiful interface, the whole is Win10 style, and the interface is similar to the default UWP. This library supports versions of the. NET Framework 4.5 and above, and versions of. NET Core 3.0 and above, and can be run on Windows Vista SP2 and above.

最后更新 9/16/2020 1:45 PM
沙漠尽头的狼
预计阅读 2 分钟
分类
.NET
专题
WPF control library WPF Open Source Project
标签
.NET C# WPF control library WPF Open Source Project

ModernWpf仓库信息

The webmaster learned about this control library from Lin Dexi in the blog park. Through clone, compilation, and operation, he found that this library is really good. As Lin Dexi said: "It has a very beautiful interface. The whole is Win10 style. The interface part is similar to the default UWP. This library supports versions of the. NET Framework 4.5 and above, and versions of. NET Core 3.0 and above, and can run on Windows Vista SP2 and above." I then moved readme from this warehouse, hoping to let more people know about the existence of this library and give WPF developers another UI library choice.

白色主题

quick start

  1. Create a WPF application
  2. Install the package ModernWpfUI from NuGet.
  3. Edit App. xaml:
<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:
<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>

some screenshots

Keep Exploring

延伸阅读

更多文章
同分类 / 同标签 5/27/2025

WPF achieves a danger warning effect

When the program we write is released, the user is doing some dangerous operations. Our software should give some reminder effects, such as red on the edge of the border, similar to the alarm reminder effect like Gaode Map

继续阅读
同分类 / 同标签 6/20/2024

CodeWF.EventBus: Lightweight event bus for smoother communication

CodeWF.EventBus, a flexible event bus library that enables decoupling communication between modules. Supports multiple. NET project types, such as WPF, WinForms, ASP.NET Core, etc. Adopt concise design to easily implement command publishing and subscribing, request and response. Ensure that incidents are properly handled through orderly incident handling. Streamline your code and improve system maintainability.

继续阅读