Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - System.InvalidOperationException

 
 
Old 03-07-2006   #1 (permalink)
madhur


 
 

System.InvalidOperationException

Hello
I have created a WPF web application . The same WPF application works
fine as a windows application but inside browser it gives the
exception. :

System.InvalidOperationException: The Storyboard.TargetProperty path
'(0).(1).[0]' does not point to a DependencyProperty.

This exception is removed if I comment the following code from my file
:

<!--<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="HighlightRectangle"
Storyboard.TargetProperty="(Rectangle.Fill).(LinearGradientBrush.GradientStops)[0]"
To="0.5" Duration="0:0:0.25"/>
<DoubleAnimation
Storyboard.TargetName="HighlightRectangle"
Storyboard.TargetProperty="(Rectangle.Fill).(LinearGradientBrush.GradientStops)[1]"
To="1" Duration="0:0:0.25"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>-->

Any help?

Madhur Ahuja


My System SpecsSystem Spec
Old 03-08-2006   #2 (permalink)
Adam Smith [MS]


 
 

Re: System.InvalidOperationException

(Rectangle.Fill).(LinearGradientBrush.GradientStops)[0] is a GradientStop,
not a Double, and you can't directly animate a member of a collection,
because collection[i] is not a DependencyProperty (you can certainly animate
properties *on* elements of a collection). You probably need to have a path
of
(Rectangle.Fill).(LinearGradientBrush.GradientStops)[0].(GradientStop.Offset).

-Adam Smith [MS]


"madhur" <ahuja.madhur@gmail.com> wrote in message
news:1141766481.581042.229970@v46g2000cwv.googlegroups.com...
> Hello
> I have created a WPF web application . The same WPF application works
> fine as a windows application but inside browser it gives the
> exception. :
>
> System.InvalidOperationException: The Storyboard.TargetProperty path
> '(0).(1).[0]' does not point to a DependencyProperty.
>
> This exception is removed if I comment the following code from my file
> :
>
> <!--<EventTrigger.Actions>
> <BeginStoryboard>
> <Storyboard>
> <DoubleAnimation
> Storyboard.TargetName="HighlightRectangle"
> Storyboard.TargetProperty="(Rectangle.Fill).(LinearGradientBrush.GradientStops)[0]"
> To="0.5" Duration="0:0:0.25"/>
> <DoubleAnimation
> Storyboard.TargetName="HighlightRectangle"
> Storyboard.TargetProperty="(Rectangle.Fill).(LinearGradientBrush.GradientStops)[1]"
> To="1" Duration="0:0:0.25"/>
> </Storyboard>
> </BeginStoryboard>
> </EventTrigger.Actions>-->
>
> Any help?
>
> Madhur Ahuja
>



My System SpecsSystem Spec
Old 03-08-2006   #3 (permalink)
madhur


 
 

Re: System.InvalidOperationException

Thanks!!!
That worked perfectly....

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Programs - Replace System Program without Modifying System Files or Permissions Tutorials
"InvalidOperationException" when closing a form (using VS2008) .NET General
Vista Blocking Shared System Drive when in WinXP (Dual Boot System) Vista security
Issues with System drive in Disk Management on a Dual Boot system Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46