Greg Does IT

Do it to get it

About

The blog of Gergely Orosz on Silverlight, .NET and other IT related topics. Follow me @gergelyorosz on Twitter.

I wasn’t planning in submitting (yet) another workaround for a Silverlight bug, but I stumbled across (yet) another annoying issue that causes no problems in WPF, but results in a exception being thrown in Silverlight. It definitely seems like another Silverlight bug still present in Silverlight 4. The problem I was building Paths by re-using [...]

Read the rest of this entry »

I’ve come across a really annoying bug in Silverlight 3 that seems to be fixed in Silverlight 4, but still present in WP7. When creating a Style object in runtime, then setting that as the Style of an element in the visual tree, the Value properties in the Setters of the original Style are set [...]

Read the rest of this entry »

I’ve recently ran into an issue: I wanted to draw an element with a dashed stroke using a Style I’ve created on the fly. To my surprise I couldn’t. The Problem The type of the StrokeDashArray (that is defined on Shape) is a DoubleCollection. So naturally I tried setting a DoubleCollection instance as the Value [...]

Read the rest of this entry »

I’ve ran into the issue of Silverlight displaying large elements incorrectly in version 3. After reporting the issue on the official Silverlight forums it’s turned out that it’s a known issue that Silverlight renders elements larger than 32K incorrectly. After Silverlight 4 released I was hoping that this issue is fixed. However, I was disappointed [...]

Read the rest of this entry »

Silverlight bug when drawing large paths

Monday, November 9th, 2009

I’m working on creating a zoom effect for a Silverlight Path object. This effect is easy to implement: I just have to apply a ScaleTransform and and a TranslateTransform within a TransformGroup for the Path (scale it up and move it on the screen where the user clicked to zoom). However when reaching a certain [...]

Read the rest of this entry »

ASP.NET server side element names changed?

Wednesday, March 4th, 2009

As far as I’ve known if the ClientID of a server control looked someting like this: ctl00_WebPartManager1_184c801b_7c67_4967_be37_3ab10406f967_ctl00_linkVote1 . Then the name sent on postback (which identified the control on the server side) was: ctl00$WebPartManager1$184c801b$7c67$4967$be37$3ab10406f967$ctl00$linkVote1 . But since some time the _ to $ conversion is not true any more. Instead the _ signs are randomly [...]

Read the rest of this entry »

TFS – deleting old workspaces

Monday, January 12th, 2009

I use Visual Studio 2008 on a daily basis however for some older projects I have to work with VS 2005. Recently our company has set a new Team Foundation Server in use and all active projects have been migrated there. In VS 2008 everything worked just fine. However when trying to re-map a project [...]

Read the rest of this entry »