public ColorSwatch()
        {
            InitializeComponent();

            btnNext.Click += (sender, e) => DoTrack('+');
            btnPrevious.Click += (sender, e) => DoTrack('-');
            canColor.MouseMove += (sender, e) => HoverColor = GetColorFromImage((int)Mouse.GetPosition(canColor).X, (int)Mouse.GetPosition(canColor).Y);
            
            Images.Add(new BitmapImage(new Uri(@"/Images/Swatch.png", UriKind.RelativeOrAbsolute)));
            Images.Add(new BitmapImage(new Uri(@"/Images/Swatch2.png", UriKind.RelativeOrAbsolute)));
            //set background.
            imgColor.Source = Images[_tracker];
            //set unsafebitmap
            _myUnsafeBitmap = _unsafeBitmaps[0]; 
        }
        private void DoTrack(char pm)
        {
            switch (pm)
            {
                case '-':
                    _tracker = (_tracker != 0) ? _tracker - 1 : _tracker;
                    btnPrevious.IsEnabled = (_tracker != 0);
                    btnNext.IsEnabled = true;
                    break;
                case '+':
                    
                    _tracker = (_tracker != 1) ? _tracker + 1 : _tracker;
                    btnNext.IsEnabled = (_tracker != 1);
                    btnPrevious.IsEnabled = true;
                    break;
            }

            imgColor.Source = Images[_tracker];
            _myUnsafeBitmap = _unsafeBitmaps[_tracker];
            Reposition();
           
        }