![]() |
|
|
#1 |
|
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> |
|
|
|
#2 |
|
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 |
|
![]() |
| Tags: |
| Thread Tools | |
| Display Modes | |
|
|