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
- Host: GitHub
- URL: https://github.com/jonteohr/gradientthemewpf
- Owner: jonteohr
- License: gpl-3.0
- Created: 2024-04-12T07:27:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-23T07:06:28.000Z (over 1 year ago)
- Last Synced: 2024-12-01T22:48:12.034Z (about 1 year ago)
- Topics: csharp, wpf, wpf-application, wpf-ui
- Language: C#
- Homepage: https://www.nuget.org/packages/GradientThemeWPF
- Size: 70.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GradientThemeWPF [](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
```