Mar.Controls
0.3.0
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Mar.Controls --version 0.3.0
NuGet\Install-Package Mar.Controls -Version 0.3.0
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="Mar.Controls" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mar.Controls" Version="0.3.0" />
<PackageReference Include="Mar.Controls" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mar.Controls --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mar.Controls, 0.3.0"
#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.
#:package Mar.Controls@0.3.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mar.Controls&version=0.3.0
#tool nuget:?package=Mar.Controls&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Mar.Controls
主色跟随响应颜色选择变化依赖优秀的三方库: ModernWpfUI。
演示各种控件效果
环形进度

Don't forget to add a percent value resources in ViewModel:
<Grid>
...
<mar:CircularProgressBar Value="{Binding Percent}" />
...
</Grid>
调试窗口
将调试信息输出到窗口中,方便调试。

Don't forget to config Serilog in App.cs:
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.Debug(outputTemplate: "{Timestamp:HH:mm:ss.fff} [{Level:u3}] {Message:l}{NewLine}{Exception}")
.WriteTo.Console(outputTemplate: "{Timestamp:HH:mm:ss.fff} [{Level:u3}] {Message:l}{NewLine}{Exception}")
.WriteTo.File(_file,
rollingInterval: RollingInterval.Day,
rollOnFileSizeLimit: true,
outputTemplate: "{Timestamp:HH:mm:ss.fff} [{Level:u3}] {Message:l}{NewLine}{Exception}")
.CreateLogger();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0-windows was computed. net9.0-windows was computed. net10.0-windows was computed. |
| .NET Framework | net472 is compatible. net48 was computed. net481 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- ModernWpfUI (>= 0.9.6)
- System.Management (>= 7.0.2)
-
.NETFramework 4.8.1
- ModernWpfUI (>= 0.9.6)
- System.Management (>= 7.0.2)
-
net6.0-windows7.0
- ModernWpfUI (>= 0.9.6)
- System.Management (>= 7.0.2)
-
net7.0-windows7.0
- ModernWpfUI (>= 0.9.6)
- System.Management (>= 7.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.1 | 254 | 8/30/2025 |
| 0.7.0 | 232 | 8/29/2025 |
| 0.6.1 | 183 | 2/28/2025 |
| 0.6.0 | 169 | 2/28/2025 |
| 0.5.1 | 195 | 10/14/2024 |
| 0.5.0 | 159 | 7/29/2024 |
| 0.5.0-pre2 | 122 | 7/19/2024 |
| 0.5.0-pre1 | 134 | 7/19/2024 |
| 0.4.2 | 208 | 6/18/2024 |
| 0.4.1 | 223 | 4/5/2024 |
| 0.4.1-pre1 | 147 | 3/25/2024 |
| 0.4.0 | 228 | 2/29/2024 |
| 0.4.0-pre1 | 140 | 2/29/2024 |
| 0.3.8 | 264 | 1/4/2024 |
| 0.3.7 | 262 | 11/17/2023 |
| 0.3.6 | 184 | 11/15/2023 |
| 0.3.5 | 174 | 11/14/2023 |
| 0.3.4 | 211 | 10/27/2023 |
| 0.3.3 | 196 | 10/12/2023 |
| 0.3.2 | 191 | 10/12/2023 |
| 0.3.1 | 200 | 10/12/2023 |
| 0.3.0 | 198 | 10/12/2023 |
| 0.2.1 | 274 | 8/18/2023 |
| 0.2.0 | 260 | 7/28/2023 |
| 0.1.0 | 386 | 4/25/2022 |