1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 01:58:30 +00:00
RGB.NET/RGB.NET.WPF/Controls/LedVisualizer.cs
Darth Affe dcaebd2b3b Added first working version of a WPF-RGBSurface
(needs tons of work though, performance is bad and it doesn't look too good so far)
2017-01-29 20:14:57 +01:00

34 lines
978 B
C#

using System.Windows;
using System.Windows.Controls;
using RGB.NET.Core;
namespace RGB.NET.WPF.Controls
{
/// <summary>
/// Visualizes a <see cref="Core.Led"/> in an wpf-application.
/// </summary>
public class LedVisualizer : Control
{
#region DependencyProperties
// ReSharper disable InconsistentNaming
/// <summary>
/// Backing-property for the <see cref="Led"/>-property.
/// </summary>
public static readonly DependencyProperty LedProperty = DependencyProperty.Register(
"Led", typeof(Led), typeof(LedVisualizer), new PropertyMetadata(default(Led)));
/// <summary>
/// Gets or sets the <see cref="Core.Led"/> to visualize.
/// </summary>
public Led Led
{
get { return (Led)GetValue(LedProperty); }
set { SetValue(LedProperty, value); }
}
// ReSharper restore InconsistentNaming
#endregion
}
}