Tag Archives: Silverlight

Silverlight DataGrid RowDetailsTemplate data context issue

I spent a bit of time last week wondering why I was having issues with my bindings.  Hopefully this will help someone who finds the same issue… Here’s a simple example of the problem I was having:  I had a … Continue reading

Posted in Uncategorized | Tagged | 1 Comment

Silverlight GotoStateAction not setting state on load

I can’t decide if this is how it’s meant to work or not.  It feels wrong…  Jason and I spent a fair amount of time today in reflector because I was having some strange behaviour in a list box.  The … Continue reading

Posted in Uncategorized | Tagged | 7 Comments

Using Visual States to keep view models simple… and not a converter to be seen

I recently posted about commands in Photon and how it helps you create simple view models.  Another reason for view models getting more complicated is view logic creeping in…  View logic in the ViewModel…  It’s a view model, surely it … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Silverlight MVVM: Commands, CommandManager and scoping with Photon

Bit of a long title…  But commanding in photon has some sweet features which help create really simple view models.  There’s no need for ICommand, DelegateCommands or constantly calling RequerySuggested.  The view simply uses the view model methods.  You TDD … Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment

Handle users leaving your page in Silverlight (OnBeforeUnload and a weak event handler)

I know it’s not ideal to prompt a user ‘You’re leaving, do you want to save changes?’ but sometimes you’ve got to.  Recently we had a requirement which stated the user must be warned when leaving our application if they … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

CompositePresentationEvent – MethodAccessException, keep your privates to yourself

This is a known issue with using composite presentation events from Prism in Silverlight.  It’s a side affect of the weak referencing used internally by the event aggregator.  Weak references are used to reduce memory leaks, which is a big … Continue reading

Posted in Uncategorized | Tagged | 2 Comments