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];
}
*/
}
}
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
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"
>
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