AW: DoubleAnimation im code
niemand eine idee? :(
edit: ich habe noch etwas herrausgefunden!
er schreibt noch
Zitat:
{System.InvalidOperationException: Cannot resolve TargetName resultInfoRect. at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Storyboard_Begin(Storyboard storyboard) at System.Windows.Media.Animation.Storyboard.Begin() at MentalMathInstructor.CalculatePage.buttonE_Click(Object sender, RoutedEventArgs e)}
wieso "Cannot resolve TargetName resultInfoRect" ?? das is auf jedenfall der richtige name ... so heisst auch mein Rectangle :/
---------- Hinzugefügt um 12:55 ---------- Vorheriger Beitrag war um 11:20 ----------
Ok ich habs hinbekommen!
ich hab das Rectangle nun im Code selbst erstellt und nich wie vorher in xaml (bin mir aber nich sicher ob das auch nötig is)
und dann fehlte noch [csharp]LayoutRoot.Resources.Add("unique_id", sb);[/csharp]
in LayoutRoot befindet sich das zu animierende Rectangle