Unknown Build Error ‘key cannot be null’

We are working on this project in a team and I just copied the line for using resources… I just forgot to copy the xmlns attribute as well. What I find strange is that the error isn’t really descriptive and doesn’t give any real hints as to what the problem is. Moral of the story: … Read more

WPF designer issues : XDG0008 The name “NumericTextBoxConvertor” does not exist in the namespace “clr-namespace:PulserTester.Convertors”

I just want to reiterate a solution that Bradley Uffner mentioned buried in the comments above. Close Visual Studio Delete the hidden .vs folder Open Visual Studio and rebuild your project Keep in mind that this is a very generic error that has multiple causes and solutions, so this may not work for you, but … Read more

remove red rectangle around combobox

Use this to modify the Validation.ErrorTemplate <ControlTemplate x:Key=”ComboBoxValidationErrorTemplate”> <DockPanel> <Border BorderBrush=”Blue” BorderThickness=”4″> <AdornedElementPlaceholder /> </Border> </DockPanel> </ControlTemplate> And then use it in your ComboBox like <ComboBox Validation.ErrorTemplate=”{StaticResource ComboBoxValidationErrorTemplate}” …> To have no indication of a Validation Error, remove the DockPanel, set Visibility to Collapsed or any other way you like. Almost forgot, probably the easiest … Read more

Capture mouse clicks on WPF TextBox

TextBox Class TextBox has built-in handling for the bubbling MouseUp and MouseDown events. Consequently, custom event handlers that listen for MouseUp or MouseDown events from a TextBox will not be called. If you need to respond to these events, listen for the tunneling PreviewMouseUp and PreviewMouseDown events instead, or register the handlers with the HandledEventsToo … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)