Home
About Me
Browse All Posts
How to Crash Visual Studio Using WPF Desginer
published on 10/18/2008 12:24:40 PM
This post is a rant to the WPF designer in Visual Studio.NET 2008. Yesterday, I was trying out the drawing features of WPF when the Visual Studio crashed on me several times. The pathetic thing was that I was trying to draw a happy face.
Here is the code that caused the Visual Studio WPF Designer to vomit.
<Image>
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<GeometryDrawing Brush="Orange">
<GeometryDrawing.Pen>
<Pen Brush="Black" Thickness="10"/>
</GeometryDrawing.Pen>
<GeometryDrawing.Geometry>
<GeometryGroup>
<EllipseGeometry RadiusX="50" RadiusY="50"/>
<PathGeometry>
<PathFigure>
<LineSegment Point="0,100" />
</PathFigure>
</PathGeometry>
</GeometryGroup>
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
The code comes under the Window root element. When writing the code makes sure you type in the code instead of copying and pasting.
If you are interested in watching a video in which Visual Studio vomits live then check out the following link:
Visual Studio Vomits When Drawing a Smiley Face
Did you like this article?
Submit
by RP on 10/19/2008 4:30:04 PM
Did you try this in Visual Studio 2008 SP1 ?
by Mohammad Azam on 10/19/2008 4:33:15 PM
Hi,
Yes I am using Visual Studio.NET 2008 SP1! Same issues.
Name:
Name:
Email:
Comment/Feedback:
2+2=
Latest Articles
Implementing Blog Using ASP.NET MVC and MongoDb
Implementing Business Object to Documents Converter for MongoDb
Persisting Hierarchical Data Using MongoDb
Introduction to MongoDb Database
Ajaxify your ASP.NET MVC Application
Latest Videos
Persisting Objects in the MongoDb Database Using C# Driver
Understanding ObjectId in MongoDb Database Using C# Driver
Saving Nested Documents in MongoDb Using C# Driver
Interacting with MongoDb Using C# Driver
Introduction to MongoDb Database
Latest Podcasts
IPad, EStudy and Rake
Mohammad Azam Loves Lego Mindstorm
F# with Ryan Riley
One Cucumber with IronRuby Coming Up!
Elijah Manor Tweets Knowledge
Technorati Profile