GradientThemeWPF 0.0.1-alpha-03

This is a prerelease version of GradientThemeWPF.
dotnet add package GradientThemeWPF --version 0.0.1-alpha-03                
NuGet\Install-Package GradientThemeWPF -Version 0.0.1-alpha-03                
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="GradientThemeWPF" Version="0.0.1-alpha-03" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GradientThemeWPF --version 0.0.1-alpha-03                
#r "nuget: GradientThemeWPF, 0.0.1-alpha-03"                
#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 GradientThemeWPF as a Cake Addin
#addin nuget:?package=GradientThemeWPF&version=0.0.1-alpha-03&prerelease

// Install GradientThemeWPF as a Cake Tool
#tool nuget:?package=GradientThemeWPF&version=0.0.1-alpha-03&prerelease                

GradientThemeWPF Build Status

A WPF theme library with modern and smooth-looking gradient colors. A base foundation for a modern-looking UI!

Installation

Use NuGet to acquire the library to your project:

.Net CLI:
dotnet add package GradientThemeWPF
Package Manager
NuGet\Install-Package GradientThemeWPF

Usage

Styles

To use the styles in your own project, make sure to import the correct styles in your App.xaml:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/GradientTheme;component/Theme/Colors.xaml" />
            <ResourceDictionary Source="pack://application:,,,/GradientTheme;component/Theme/Controls.xaml" />
            <ResourceDictionary Source="pack://application:,,,/GradientTheme;component/Theme/Window.xaml" />
            <ResourceDictionary Source="pack://application:,,,/GradientTheme;component/Theme/ControlColors.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Later in the window you want to be gradient colored, add the style GradientWindow to the window.

Example of styles for each control is available in the example project.

Controls

In order to use the custom controls you need to import the "namespace" in the window header, which is quite simple:

xmlns:controls="clr-namespace:GradientTheme.Controls;assembly=GradientTheme"

Later on the controls can be instantiated by prefixing <controls:, for example:

<controls:TyperLabel Style="{DynamicResource TitleStyle}" >
    
    <controls:TyperLabel.Titles>
        <x:Array Type="{x:Type sys:String}">
            <sys:String>One Title</sys:String>
            <sys:String>Another Title</sys:String>
            <sys:String>Great Title</sys:String>
        </x:Array>
    </controls:TyperLabel.Titles>
</controls:TyperLabel>
Product 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.  net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.
  • net7.0-windows7.0

    • No dependencies.
  • net8.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
0.0.1-alpha-03 69 4/23/2024
0.0.1-alpha-02 58 4/22/2024