Ok, looks like the forum doesn't work in opera, trying to post again, hopefully retaining my formatting and tags...
I'm currently evaluating the current SL 2.0 beta build. When trying the "Changing the Appearance of an Existing Control" Quickstart (http://silverlight.net/Quickstarts/BuildUi/47391440-987f-43d8-a4e4-b04a8133a5cc.aspx I've run into problem, that causes Silverlight to hang.
The minimal repro case is this:
<UserControl x:Class="TestApp1.Appearance"
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<StackPanel>
<StackPanel.Resources>
<Style TargetType="Button" x:Key="buttonStyle">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Grid x:Name="ELEMENT_Root">
<Rectangle x:Name="Base"
RadiusY="2" RadiusX="2"
/>
<ContentPresenter
Content="{TemplateBinding Content}"
/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</StackPanel.Resources>
<Button Content="Button 1" Style="{StaticResource buttonStyle}"/>
</StackPanel>
</UserControl>
When running from Visual Studio 2008 in debug mode it causes IE to hang with Devenv.exe and IEplore.exe using 100% CPU.
Running without a debugger attached causes both IE and Firefox to hang with 100% CPU.
When I remove the Content="{TemplateBinding Content}" part, silverlight starts again.
Is the code wrong or is this a known problem? Any help is appreciated.
My Test system is running Vista x64 SP1.
Enjoy your weekends!
Ben