private void InitialColor_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { SelectedColor = ((SolidColorBrush)InitialColor.Background).Color; CurrentColor.Background = LastColor.Background = InitialColor.Background; UpdateMarkerPosition(SelectedColor); }