private void StickerGalleryCtrl_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (e.ClickCount > 1) { // Do double-click code string fileName = StickerGalleryCtrl.GetSelectedImageFilePath(); myPaint.ImportImageGreyScale(fileName); e.Handled = true; } }
private void AddStickerImgBtn_MouseDown(object sender, MouseButtonEventArgs e) { string fileName = StickerGalleryCtrl.GetSelectedImageFilePath(); myPaint.ImportImageGreyScale(fileName); }