An open API service indexing awesome lists of open source software.

https://github.com/jonteohr/gradientthemewpf

A basic example of a WPF app with gradient visuals. Used by me as a template for future projects
https://github.com/jonteohr/gradientthemewpf

csharp wpf wpf-application wpf-ui

Last synced: 3 months ago
JSON representation

A basic example of a WPF app with gradient visuals. Used by me as a template for future projects

Awesome Lists containing this project

README

          

# GradientThemeWPF [![Build Status](https://jenkins.jonteohr.xyz/job/GRADIENTTHEMEWPF_TRUNK/badge/icon)](https://jenkins.jonteohr.xyz/job/GRADIENTTHEMEWPF_TRUNK)
**NOTE**: This project is currently under development and is not yet complete. Pre-releases are available for download, but they are not stability tested and should not be used in production.

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

## Installation
[Use NuGet](https://www.nuget.org/packages/GradientThemeWPF) to acquire the library to your project:

#### .Net CLI:
```cmd
dotnet add package GradientThemeWPF
```
#### Package Manager
```powershell
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`:
```xaml








```
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](ExampleApp).

### Controls
In order to use the custom controls you need to import the "namespace" in the window header, which is quite simple:
```xaml
xmlns:controls="clr-namespace:GradientTheme.Controls;assembly=GradientTheme"
```
Later on the controls can be instantiated by prefixing `



One Title
Another Title
Great Title

```