Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

carousel storyboard timeline controls

1 view
Skip to first unread message

dalarew

unread,
Oct 22, 2007, 3:01:09 PM10/22/07
to
Please, direct me to some basic code that simply starts, stops, pauses, and
reverses a carousel storyboard. The other samples seem to require web
services and I'm blocked behind a firewall. I'm using two buttons < > .

I need a proof of concept yesterday and my sample only plays.

tia, David

if (!window.silver_carJS)
window.silver_carJS = {};

silver_carJS.Page = function()
{

}

silver_carJS.Page.prototype =
{
handleLoad: function(control, userContext, rootElement)
{
this.control = control;

// Sample event hookup:
rootElement.addEventListener("MouseLeftButtonDown",
Silverlight.createDelegate(this, this.handleMouseDown));
},

// Sample event handler
handleMouseDown: function(sender, eventArgs)
{

// The following line of code shows how to find an element by name and
call a method on it.
//this.control.content.findName("Forward").Begin();
sender.findName("myStoryboard").begin();
sender.findName("story01").begin();
//sender.findName("story_Copy2").begin();


/* story_Copy2
function animation_begin(sender, args) {

sender.findName("myStoryboard").begin();
}

function animation_pause(sender, args) {

sender.findName("myStoryboard").pause();
}

function animation_resume(sender, args) {

sender.findName("myStoryboard").resume();
}

function animation_stop(sender, args) {

sender.findName("myStoryboard").stop();
}


function startAnimation(sender, mouseEventArgs)
{
// Retrieve the Storyboard and begin it.
sender.findName("Timeline1").begin();

}

var imgArray = new Array();
imgArray[0] = "xplan04.jpg";
imgArray[1] = "xplan03.jpg";
imgArray[2] = "xplan02.jpg";
imgArray[3] = "xplan01.jpg";
imgArray[4] = "Sunset.jpg";

for(int i = 0; imgArray.length< 5; i++)
{
this.control.content.findName("am")=imgArray[i];
}
*/


}
}

Eric

unread,
Oct 22, 2007, 3:49:24 PM10/22/07
to
On Oct 22, 3:01 pm, dalarew <dala...@discussions.microsoft.com> wrote:
> Please, direct me to some basic code that simply starts, stops, pauses, and
> reverses a carousel storyboard. The other samples seem to require web
> services and I'm blocked behind a firewall. I'm using two buttons < > .

I don't think you can play a timeline in reverse. I think you need to
use a different timeline for that. I'm not sure how you'd sync it up
with the current position of the object so it just picks it up
whereever it is and starts rotating it in the other direction?

Web service go through firewalls. That's the whole reason for their
existance. They use port 80 and http, so they look just like a web
page.

Eric

dalarew

unread,
Oct 22, 2007, 9:54:00 PM10/22/07
to
Help, Please!

I need to advance the image to the front based on user input.
Make it glow / grow on mouseover and reset all other images around
carousel...and of course link images to data controlled pages...


<Canvas
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Background="Black"
x:Name="Page"
Width="1000" Height="800"
>

Eric

unread,
Oct 24, 2007, 1:44:59 PM10/24/07
to

I recommend looking at some rolodex examples. There are several that
I've seen so far. None of them are as simple as you might expect them
to be.

Eric

uchiha

unread,
Feb 27, 2014, 10:18:26 PM2/27/14
to
dalarew wrote on 10/22/2007 15:01 ET :
> Please, direct me to some basic code that simply starts, stops, pauses, and
> reverses a carousel storyboard. The other samples seem to require web
> services and I'm blocked behind a firewall. I'm using two buttons < > .
>
> I need a proof of concept yesterday and my sample only plays.
>
> tia, David
>
> if (!window.silver_carJS)
> window.silver_carJS = {};
>
> silver_carJS.Page = function()
> {
>
> }
>
> silver_carJS.Page.prototype {
Though I don't know the exact process, but I found some carousel tutorial for
you as reference:

http://www.kettic.com/winforms_ui/carousel_overview.shtml

http://www.kettic.com/winforms_ui/csharp_guide/carousel_getting_started.shtml

I hope this be helpful.
0 new messages