Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Sliverlight Designer in VS2008 crashes, appears empty
3 replies. Latest Post by objectinator on April 11, 2008.
(0)
objectin...
Member
4 points
3 Posts
04-09-2008 4:59 AM |
Hi, I have a usercontrol like the following:
<
</
The Style="{ StaticResource SmallCloseButton}"/> makes the designer crashes when I reference this above control inside another control like so:
When I remove the line that sets the style in the control then it works (Style="{ StaticResource SmallCloseButton}"/>)
Please help
Yi-Lun L...
All-Star
25052 points
2,747 Posts
04-11-2008 3:29 AM |
Hello, I think you have some error in your markup. First, where's the Style SmallCloseButton? Also, Opacity should range from 0 to 1. In Blend, you can find Opacity value of 100%. But 100% = 1, right? Finally, make sure you have the proper event handlers in code.
04-11-2008 9:11 AM |
thanx for the reply. No, nothing is wrong with the markup here is the SmallCloseButton Style below: if you copy all my code you will also get the designer to "not show" because it's a bug I'm sure. When you remove the reference to the SmallButton style it works. Also, it's only the designer view that crashes, as it runs fine in the browser. Scot Gu's Digg sample does the same thing - download his code here: http://www.scottgu.com/blogposts/slbeta1apps/diggsample.zip
and see what I mean. The page.xml file when open in Designer view shows an empty designer, yet it runs fine. The problem is the bug when you reference a user control inside another usercontrol and the referenced user control has a reference to a style for a button for example.