Vorcyc.ModernUI
1.0.0
dotnet add package Vorcyc.ModernUI --version 1.0.0
NuGet\Install-Package Vorcyc.ModernUI -Version 1.0.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="Vorcyc.ModernUI" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vorcyc.ModernUI --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vorcyc.ModernUI, 1.0.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.
// Install Vorcyc.ModernUI as a Cake Addin #addin nuget:?package=Vorcyc.ModernUI&version=1.0.0 // Install Vorcyc.ModernUI as a Cake Tool #tool nuget:?package=Vorcyc.ModernUI&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
1. Add reference of Vorcyc.ModernUI.dll to your WPF project.
2. Make App.xaml like this :
<Application x:Class="demo.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:demo"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<Color x:Key="AccentColor">#ca5100</Color>
<FontFamily x:Key="DefaultFontFamily">Microsoft YaHei</FontFamily>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Vorcyc.ModernUI;component/Assets/ModernUI.xaml"/>
<ResourceDictionary Source="/Vorcyc.ModernUI;component/Assets/ModernUI.Light.xaml"/>
<ResourceDictionary Source="/Vorcyc.ModernUI;component/Assets/Icons.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
This step will make change to the apperance of controls in your application.
3. Use the ModernNormalWindow or ModernWindow to replace System.Windows.Window .
XAML:
<ui:ModernNormalWindow
x:Class="Vorcyc.Rocket.Starter.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://mui.Vorcyc.com/"
xmlns:localui="clr-namespace:Vorcyc.Rocket.Starter.UI"
xmlns:local="clr-namespace:Vorcyc.Rocket.Starter.UI"
WindowStartupLocation="CenterScreen"
LogoData="M 547.999 181.792 c -1.295 -6.012 -5.996 -10.706 -12.01 -11.99 C 504.303 163 479.506 163 454.797 163 c -100.791 0 -161.461 53.539 -206.867 124.373 h -98.526 c -17.635 0.015 -33.753 9.975 -41.655 25.739 l -48.02 96.001 c -5.747 11.525 -1.063 25.527 10.462 31.275 c 3.236 1.613 6.803 2.452 10.418 2.45 h 89.977 l -10.29 20.813 c -5.879 11.913 -3.472 26.252 5.975 35.592 l 52.247 52.197 c 5.817 5.848 13.721 9.145 21.969 9.163 c 4.72 -0.005 9.375 -1.1 13.604 -3.196 l 20.784 -10.28 v 90.044 c 0.042 12.861 10.458 23.276 23.32 23.319 c 3.588 -0.002 7.125 -0.844 10.328 -2.458 l 95.903 -47.99 c 15.792 -7.89 25.764 -24.031 25.749 -41.685 v -98.595 c 70.718 -45.455 124.538 -106.358 124.538 -206.683 C 554.79 238.275 554.79 213.526 547.999 181.792 L 547.999 181.792 Z M 181.595 411.746 H 93.174 l 42.354 -84.729 c 2.656 -5.226 8.013 -8.527 13.875 -8.55 h 82.766 c -13.545 27.274 -30.821 62.186 -46.213 93.28 H 181.595 Z M 399.111 568.358 c -0.014 5.882 -3.346 11.251 -8.608 13.875 l -84.534 42.307 v -92.813 c 31.093 -15.382 65.897 -32.64 93.143 -46.193 V 568.358 Z M 413.336 443.714 c -38.381 19.219 -132.02 65.538 -172.868 85.739 l -52.295 -52.033 c 20.279 -41.033 66.588 -134.662 85.73 -173.13 c 48.788 -76.188 104.629 -110.196 180.895 -110.196 c 20.93 0 40.81 0 64.742 4.168 c 4.217 24.166 4.139 43.929 4.062 64.81 C 523.62 338.939 489.612 394.703 413.336 443.714 Z M 414.794 240.733 c -34.345 0 -62.187 27.842 -62.187 62.187 s 27.842 62.187 62.187 62.187 c 34.344 0 62.187 -27.842 62.187 -62.187 C 476.943 268.591 449.123 240.771 414.794 240.733 Z M 414.794 334.013 c -17.173 0 -31.094 -13.921 -31.094 -31.093 s 13.921 -31.093 31.094 -31.093 c 17.172 0 31.093 13.921 31.093 31.093 S 431.966 334.013 414.794 334.013 Z"
Title="Vorcyc Rocket" Height="500" Width="800">
<Grid>
</Grid>
</ui:ModernNormalWindow>
C#:
using System.Windows.Input;
using Vorcyc.ModernUI.Windows.Controls;
namespace Vorcyc.Rocket.Starter
{
public partial class MainWindow : ModernNormalWindow
{
public MainWindow()
{
InitializeComponent();
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0-windows7.0
- No dependencies.
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 |
---|---|---|
1.0.0 | 271 | 9/27/2022 |