Share:

MyColor.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody

MyColor.cs

Drag object using MouseLeftButtonDown, MouseLeftButtonUp and MouseMove. When we drag object using mouse and if object's any part is going outside parent panel then the parent panel margin automatically update and try to in that object.
using System.Windows.Media;
namespace EffectFeatures
{
    public class MyColor
    {
        public static Color[] Row = {
            Color.FromRgb(20, 15, 0),
            Color.FromRgb(20, 0, 15),
            Color.FromRgb(10, 0, 20),
            Color.FromRgb(0, 10, 20),
            Color.FromRgb(0, 20, 15),
        };
        public static Color[] Effect = {
            Color.FromRgb(255, 165, 0),
            Color.FromRgb(255, 0, 165),
            Color.FromRgb(165, 0, 255),
            Color.FromRgb(0, 165, 255),
            Color.FromRgb(0, 255, 165),
        };
    }
}

Comments

Popular posts from this blog

Get Color From Pixel C# WPF | Saatody | Amit Padhiyar

Basic Audio Operations With MP3 And Wave Files Using NAudio C#

Create Drag And Drop Operation Between DevExpress GridControl And Custom WPF UI | Saatody | Amit Padhiyar