It depends on what you plan to achieve. The point is that property binding should be performed across items on the visual tree. If you show the animation I can tell how is the proper way to bind the animation and the slider value.
Up vote 0 down vote favorite 1 share g+ share fb share tw.
I'm trying to create a sound volume control and for that I've created a storyboard which is animating the volume visually. And I've put this inside an common slider control. And I want to databind the value of the slider directly to the storyboards timeline position.
If the slider is value 0, then the storyboard should be at 00:00 etc, all th way up to the top. Is this possible? This is the code of the control.
The Storyboard animation is in here. And the control itself it put on the Canvas like this: wpf data-binding animation expression-blend storyboard link|improve this question edited May 2 '09 at 12:24 asked May 2 '09 at 9:45Kenny Bones76311446 71% accept rate.
Post some code. – Anand May 2 '09 at 11:02 Anything? I'm really at a blank here.
I just know a little bit of Visual Basic and that's about it. Can someone give me a small hint of what to do next? I mean, I've got the storyboard and its XAML code.
And the storyboards got values. Now, in Visual Studio, I could've probably just binded the values directly togehter by referencing to the namespace and it's control binded to. I don't even know the correct syntax to use here.
– Kenny Bones May 23 '09 at 18:44.
It depends on what you plan to achieve. The point is that property binding should be performed across items on the visual tree. If you show the animation I can tell how is the proper way to bind the animation and the slider value.
For example, if your animation is a turning knob the way to do it is binding the slider value through a converter to the rotation angle of the item you want to animate. But, as I said, it depends on your animation. Show it, even a JPEG, and I can tell more details.
Ok, I've uploaded a JPEG for you to look at here: img24.imageshack.us/img24/396/slidern.jpg As you can see, I've inserted a slider control from the SimpleStyles. Xaml and created a copy. I've grouped the default Grid within the control - into another Grid and put the existing content into the second column.
Just to make room for the sound icon and it's animation. Then I created a storyboard where 00:00 represent the lowest sound volume, up to 1 second, which represent the volume at the max. I could of course create even more keyframes if that's necessary. :) – Kenny Bones May 2 '09 at 12:16 Anyone?
I've been searching everywhere but can't find any info on storyboards like this – Kenny Bones May 3 '09 at 20:22.
Old, I know, but I've seen this question asked in tons of places. Hoping this answer will help someone else. From MSDN: How to: Set a Property After Animating It with a Storyboard msdn.microsoft.com/en-us/library/aa97049... You need to remove the storyboard from the object and manually set its value to the ending value of the animation.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.