OK, so i have an MVVM Silverlight app
and recently, it seems every single one of my views throws an XamlParseException because it cannot find static resources that i have defined in my app.xaml file.
I am positive that these views all used to work in design mode, but none of them do anymore.
Cannot find a Resource with the Name/Key VisibilityFormatter [Line: 15 Position: 28] at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at USRWeb.Main.Views.Scheduling.SeatDetails.InitializeComponent() in xxx\obj\Debug\Views\SeatDetails.g.i.cs:line 63 at USRWeb.Main.Views.Scheduling.SeatDetails..ctor() in xxx\Views\SeatDetails.xaml.cs:line 25
so, why did this all of a sudden change on me, and how do i work around it?
It looks (to me) - as Bryant has suggested, that you have added in a control to the page that is missing a check for designer mode.
SeatDetails.g.i.cs is a generated file, which I think is generated as the invisible code behind to declare your controls, etc on your page. One (or more) of those controls looks to be trying to run some code it shouldn't, when in design mode.