private void img_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     this.Visibility = Visibility.Collapsed;
     cc = new Canvas4All();
     if (cc.ShowDialog() != null)
     {
         this.Visibility = Visibility.Visible;
     }
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     this.Visibility = Visibility.Collapsed;
     cc = new Canvas4All();
     if (cc.ShowDialog() != null)
     {
         this.Visibility = Visibility.Visible;
     }
 }