View Single Post
Old 11-06-2008, 07:56 PM   #1
Norman Headlam
Guest
 
Posts: n/a
Design View Not Working in Blend June CTP and VS2008 with SL2B2

I have an odd problem. The following code compiles in both VS2008 SL2B2 and
Blend 2 June 2008 CTP. I can also run the program. However, the UI does not
get rendered in either Blend or VS. Blend gives the following error “The
event ‘Loaded’ is not a RoutedEvent.” For the following <EventTrigger
RoutedEvent="TextBlock.Loaded">

<UserControl x:Class="Fmr.OneView.Presentation.Silverlight.Page "
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid x:Name="LayoutRoot"
Background="White">
<TextBlock Text="Welcome Message"
Name="OneView"
FontSize="1">
<TextBlock.Triggers>
<EventTrigger RoutedEvent="TextBlock.Loaded">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard Storyboard.TargetProperty="FontSize"
Storyboard.TargetName="OneView">
<DoubleAnimation From="1"
To="128"
Duration="0:0:5"
AutoReverse="true"
RepeatBehavior="Forever"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</TextBlock.Triggers>
</TextBlock>
</Grid>
</UserControl>

  Reply With Quote