By the bit of code, we can not identify exact issue but your error says your resolution steps clearly
1) The name ImageSource does not exist in the current context
ImageSource
is not declared in the current scope, You need to declare at where you are
using same or make sure it should be accessible where it needed.
2) card does not contain a definition for cards and total.
There is no defination for cards and total in
card
3) Non-invocable member cannot be used like a method
Comment Uri from reset
public void Reset()
{
ImgCard.Source = imageSource;
OfCardstext.Content = "";
Cardtext.Content = "";
Totaltext.Content = "";
ListHeader.Items.Clear();
}
and set just update your bitmapimage code like this
BitmapImage myBitmapImage = new BitmapImage();
myBitmapImage.BeginInit();
myBitmapImage.UriSource = new Uri(@"your image path");
ImageSource imageSource = myBitmapImage