Brownsblogging

kelly brownsberger's blog
posts - 71, comments - 18, trackbacks - 0

silverlight

silverlight
ASP.NET MVC - Unhandled Error in Silverlight Application Code: 2104

I’m creating a simple ASP.NET MVC application and on first run I’m getting blasted with this: Google didn’t turn up the solution as fast as I would have liked, so I thought I’d post it here for the next fool to find :) Solution: When you add a Silverlight project to a solution, Visual Studio will ask you if you would like to create new web site to host it, or choose an existing one in your solution.  I choose an existing one.  By default, Visual Studio creates this in your HTML markup to...

posted @ Thursday, December 10, 2009 6:52 PM | Feedback (0) | Filed Under [ silverlight ]

Debugging Silverlight with Silverlight Spy

The debugging experience in Silverlight project using Visual Studio is quite good.  However, there are two things that is doesn’t help much with:  when data bindings don’t work, and when your XAML doesn’t look like you think it should.  Here’s a post about debugging data bindings.  The visual part is a little more involved.  Yes, yes Expression Blend has a nice visual designer, but it’s fairly common for Blend to show a piece of XAML in one way and for it to actually render in the browser differently (sometime significantly differently).  Today I found First Floor Software’s Silverlight Spy.  This...

posted @ Monday, November 23, 2009 12:47 PM | Feedback (0) | Filed Under [ silverlight ]

Silverlight ComboBox SelectedItem Not Working

I spent well over an hour on Friday with this one and gave up.  I spent almost another hour today working on this.  I almost gave up, but when I’m in learn-mode like I am with Silverlight, these types of issues can really teach you a lot if you see them through.  I had a ComboBox with bindings on it’s ItemSource and SelectedItem like so: <ComboBox Name="ComboBoxControl" Style="{StaticResource ComboBoxStyle}" SelectedItem="{Binding Path=SelectedOption, Mode=TwoWay}" ...

posted @ Monday, November 23, 2009 12:31 PM | Feedback (2) | Filed Under [ silverlight ]

Silverlight Lessons Learn – Debugging Data Bindings

I’ve been neck deep in Silverlight development for the last couple of weeks.  I’m finally starting to feel somewhat competent.  Most of my struggles have been with XAML in general, so I think the steep learning curve applies to both Silverlight and WPF.  One of the things I’ve been using struggling with the most is troubleshooting data bindings.  The data binding system in Silverlight and WPF is pretty awesome, but it’s definitely not intuitive nor discoverable.  When you force yourself to learn it, most of those issues melt away, but… buuuuut, debugging binding remains extremely difficult. Today I discovered...

posted @ Monday, November 23, 2009 12:23 PM | Feedback (0) | Filed Under [ silverlight ]

Powered by: