-
The new WebBrowser control in Silverlight 4 is capable of showing HTML content based on a URI or string within your Silverlight application. There are just 2 gotcha’s: 1. At this moment the WebBrowser control will only work if the application runs in...
-
This week, I needed to create a client for a webservice created in Java. The webservice has implemented username/password security (in the WS security header) AND a certificate. So, in my ignorance, I configured the following binding: <basicHttpBinding>...
-
Today I converted an ASP.NET 2.0 webapplication to 4.0 using Visual Studio 2010 RC. The convert process ran quite smoothly. After the conversion I discovered two new attributes in the pages tag of the converted web.config file, curious? 1. controlRenderingCompatibilityVersion...
-
When you create a new Silverlight Application in Visual Studio a dialog box comes up with an option to host the application in an ASP.NET Web Application. When you check this option a ASP.NET Web Application project will be added next to the Silverlight...
-
I was notified today by email that Microsoft awarded me the 2010 Microsoft MVP Award for C#. Just great!
-
I wanted to reuse the logic of a Command defined in another usercontrol. The simple solution would be to create a separate, public method which I then could call from outside the control (and call this method in the Execute eventhandler). A more...
-
Wpf and xaml has been out for a while now, so the community already knows the do’s and don’ts of programming in xaml. Thankfully, there are always some nice people who share this stuff with us. This is a good resource and starting point. It also...
-
When I run my tests in Visual Studio and one or more tests fail, I hit the Debug Selected Test so see what is going on. But at times, I get this error message: I don’t know what trigger this, but I had to restart Visual Studio to be able to Run or Debug...
-
This year I spend a lot of time working on an .NET ERP System with a bunch of nice colleagues. Wrote a couple of hundred unit tests, did dozens of code reviews and even more refactorings. My favorite and most used refactoring must be Refactoring Day 7...
-
The other day, I had to show different datatemplates depending on a specific property value. (The datatemplateSelector is your friend!) I used different foreground colors to visualize the states; however, the layout design was the same for each...
-
It's pretty easy to inherit from an existing control in WPF. For instance, this great programmer I know has written an extended combobox . It has extra functionality, like: * Automatically select the value if only one item is available in the...
-
I really like WPF converters. I often don’t need the ConvertBack method though. Most programmers deal with this by leaving the throw new NotImplementedException() , or they return null. I also see this method being marked with the [Obsolete()] ...
-
A friend of mine, Chad Hower aka Kudzu, is in trouble. Chad has developed many internet-related components for Delphi, with Indy (being shipped with Delphi) being the most well known. Chad is also a speaker and writer and now works for Microsoft. He’s...
-
Last week, I was giving a Silverlight training in the beautiful Bergen (Norway). I have WPF experience, but I was still struggling with some demo’s because of its differences with Silverlight. Silverlight is supposed to be a subset of WPF but that’s not...
-
Microsoft, heads up. They even know WPF above the polar circle now. For a while now, we have a customer in Norway. So my colleagues and I are travelling around the country. For me, it’s my first time in the country and in Scandinavia. So far I’m baffled...