How to code a converter in WPF to display four status icons in WPF, In my project I am planning to display following four status based on certain conditions
1) Red Dot icon – Unsaved data
2) Green Dot icon – Save successful
3) White Dot icon OR No icon – window has Initialized successfully and there is no unsaved data.
4) Error icon – There were errors while saving data.
Any help would be highly appreciated, thanks in advance.
If you want to change the window icon the simpliest way is to create all icons and save them as resource and then change it with:
If you want just to display dots on your form you draw a circle and change its color with yourCircle.Fill(newColor)
This example is from msdn: