I'm developing a networked WPF application with the MVVM pattern and it seems that it's running and connecting to servers in the designer.
I know about the IsInDesignMode property, but I'm not sure how to access it in a ViewModel.
DependencyObject dep = new DependencyObject();
if (DesignerProperties.GetIsInDesignMode(dep))
{
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With