I have an application that is using XAML and C# (MVVM) to create a interface that allows you to start and stop a camera feed.
What I would like to do is to switch between a OFF and ON image depending on the variable IsOn
.
I know how to set the image in the UI Manually,
<Image Source="/MyApp.WpfUI;component/Resources/Images/Webcasting.png" />
but I am not sure how to best change the image dynamically based on conditions. I have considered IF statements, but am not sure how to go about that.
Does anyone have any advice or ideas?