Sunrise

Sunrise
Sunrise

Thursday, June 28, 2007

Note to self: Spyware

Another note to myself in case I ever need to clean out spyware.
See http://www.codinghorror.com/blog/archives/000888.html

Wednesday, June 20, 2007

VS2008

Scott Guthrie recently blogged about the multi-targeting support of VS2008 (Orcas' new name). There's some good stuff in there about some of the cool stuff coming out of VS2008 and .netfx3.5. I also noticed this:
We haven't announced any official RTM dates, but we are planning to have our final beta (Beta2) ship later this summer. Historically the final RTM date of a VS release is usually not too many months off from that.
Might be old news to some but to date I havn't heard of any more concrete release dates than this.

Tuesday, June 12, 2007

Mental Note

Writing myself a mental note in case this happens again. I guess it's not really a mental note if I write it down though is it...?

When moving a user control that referenced another assembly into a user control within that assembly, remove the assemblyname attribute from the clr-namespance declaration. It will spit the dummy and tell you that the tag does not exist in the namespace when you can clearly see that it does. Another idicator that this is happening is if you hover over the InitializeComponent() method in the constructor it will ask if you want to generate the method stub.
So if you've got :-
xmlns:poo="clr-namespace:CompanyName.Product.Client.Support.Controls.Reports;assemblyname=CompanyName.Product.Support">

and you're now using the poo reference from within itself it will not compile. You need to change it to :-
xmlns:poo="clr-namespace:CompanyName.Product.Client.Support.Controls.Reports">

While I'm on it, another issue that I came across yesterday was getting a dependency property to work from within a usercontrol. I had it all wired up correctly but it didn't seem to be working. Upon consultation with the guru it was due to the fact that I hadn't specified the DataContext of the usercontrol to itself.

Wednesday, June 6, 2007

Referencing an image from another project in xaml

I recently had an issue where I had a usercontrol that was packaged in a project together with an image that it referenced. Another project used the usercontrol and it wasn't displaying the image. After fiddling with the image source, changing it to a pack URI and a few different things I found that it had nothing to do with the source property. The answer was to go to the properties of the image and change the Build Action to Resource instead of Content.
There you go.