private void BWLayer_MouseUp(object sender, MouseButtonEventArgs e) { if (e.ChangedButton != MouseButton.Left) { return; } BWLayer.ReleaseMouseCapture(); TestUserControl.KeepPreviewColor = false; }
private void BWLayer_MouseDown(object sender, MouseButtonEventArgs e) { if (e.ChangedButton != MouseButton.Left) { return; } BWLayer.CaptureMouse(); SetColorFromBWLayer(e); // Do not update Preview Color when clicking on BWLayer TestUserControl.KeepPreviewColor = true; }