How to Check if currently in Design Mode or not in WPF?

c-sharp

(Yassine) #1

How can i check if currently the Window is in Design Mode or not in WPF?

To prevent some Code from executing in Design Mode.