Tag Archives: binding

WPF Validation Errors not showing on initial load of control or window

I was setting validation errors on the initial load of my view model, and to my annoyance the window would show up like everything was great. The validation code was definitely running, the HasErrors was true, the dictionaries were filled with the errors but the form was like, “What errors?”  This irritated me. Well, WPF… Read More »

Silverlight and WPF Boolean Not Converter…To be or NOT to be

So you have an IsReadOnly flag on your viewmodel, but you want to set the IsEnabled property on control. A conundrum for a binding, right. Well, simple solution to an annoying problem. Use the converter below on your binding and it becomes opposite day. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data;  … Read More »

Config file issue to make you rip hair out

I spent about 2 hours staring at this lovely cryptic error: Extension element ‘silverlightFaults’ cannot be added to this element.  Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions I had it setup correctly, but why would the system not compile it? This was the registration: <add name=”silverlightFaults” type=”Seekford.SilverlightFaultBehavior.SilverlightFaultBehavior,Seekford.SilverlightFaultBehavior, Version=, Culture=neutral, PublicKeyToken=7073c134a4dabf61″… Read More »

Bind Title for the ChildWindow to a localized resource using MVVM and Extension

I need to ensure my Silverlight application is localizable, so I am binding to a localizable resource file in the project. The issue is, how do I bind to the Title property? It crashed when trying to bind to a local resource since it hasn’t loaded the resources at this point. Even though the designer… Read More »

WCF Service failing with “The server has rejected the client credentials”. Why doesn’t the server like me?

I spent the past couple of days dealing with faultexceptions being thrown by our WCF service that was being consumed by our Indian team. It worked for all the US teams, but for some reason the Indian team kept getting faultexceptions on the service. The proxy seemed to disguise the error and was throwing an… Read More »