Inside a function that i call, theres this condition (which does happen because the message box does appear), however the image does not become invisible
when making classes that need to access elements of the mainwindow from the XAML, i need to inherit the "Window" class too? Id like to make a class that contains refrences to all images in the XAML, for my own convenience