ok, i know this is the lazy way but after a while trying i cannot see the obvious answer. And, it's been one of these days where every simple thing i want to do ends up requiring Google!!
I have a Silverlight MVVM project and all is good except I cannot figure out how to stop the BeginRefresh code running at design time without the use of :
if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
BeginRefresh(.....
I tried using d:DataContext and IsDesignTimeCreatable but still couldn't figure out how to present the xaml so that it works at runtime but behaves at design time.
I don't want to have to code that if statement all over the place.
Any one?
Copyright (c) Marimer LLC