![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | Re: System.InvalidOperationException Thanks!!! That worked perfectly.... |
My System Specs![]() |
| 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 | |||