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
Creating SharpRichTextBox for Live Character Count in WPF
Move Over Nant, Rake is in Town
Implementing ViewModel in ASP.NET MVC Application
Using T4 Templates to Create Strongly Typed View Names
Introduction to Dependency Injection Using StructureMap
Latest Videos
Creating Live Character Counter RichTextBox in Windows Presentation Foundation
Creating Custom Annotations in ASP.NET MVC Framework
Building a Simple Validation Framework for WPF Applications
Introduction to Routing in ASP.NET MVC
Implementing Custom Action Filters in ASP.NET MVC
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