TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Expression

Reply
 
Thread Tools Display Modes
Old 11-06-2008, 06: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
Old 11-06-2008, 10:00 PM   #2
Rick Beerendonk
Guest
 
Posts: n/a
Re: Design View Not Working in Blend June CTP and VS2008 with SL2B2

> Blend gives the following error “The event ‘Loaded’ is not a RoutedEvent.”

I got it for "<EventTrigger RoutedEvent="Canvas.Loaded" ..." as well.
Loaded is definitely a RoutedEvent!

Rick

  Reply With Quote
Reply
Tags:


Thread Tools
Display Modes


Google
 


All times are GMT +5.5. The time now is 04:46 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional