Skip to main content

Microsoft Silverlight

Answered Question Page Turn Code Sample in Silverlight 2.0RSS Feed

(0)

CraigMuckleston
CraigMuc...

Member

Member

268 points

131 Posts

Page Turn Code Sample in Silverlight 2.0

Does anyone know of any code examples of the Page Turn application in Silverlight 2?

Pluginbaby
Pluginbaby

Member

Member

553 points

220 Posts

Silverlight MVP
Answered Question

Re: Page Turn Code Sample in Silverlight 2.0

Yes!

Jeff Prosise wrote a Silverlight Page Turn Framework for the last MSDN Magazine (May 2008).

You can download the code there:
http://msdn.microsoft.com/en-us/magazine/default.aspx

This is a Silverlight 1.0 app.

 

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Laurent Duveau
Silverlight MVP / Silverlight Insider
http://weblogs.asp.net/lduveau/

CraigMuckleston
CraigMuc...

Member

Member

268 points

131 Posts

Re: Page Turn Code Sample in Silverlight 2.0

But like you say - it's Silverligth 1.0...

BenHayat
BenHayat

Participant

Participant

1033 points

600 Posts

Re: Page Turn Code Sample in Silverlight 2.0

CraigMuckleston:
But like you say - it's Silverligth 1.0...
 

Exactly!

There are actually two samples in the gallery, version 1 with code and version 2 without code. I wish the would change the policy as if you put a sample in the gallery,  it should come with code to learn from. Otherwise it's useless for developers who are looking at the running apps.

___________
Best Regards;
..Ben

Silverlight & WPF Insider
Please visit www.MicroIntelligence.Com For our services!

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Page Turn Code Sample in Silverlight 2.0

Hello, I recommend you to trying convert the JavaScript code to C# on your own. This is a good chance to learn. If you meet any problems in your conversion, feel free to ask them on this forum.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.

cjhutchings
cjhutchings

Member

Member

79 points

85 Posts

Re: Page Turn Code Sample in Silverlight 2.0

Hi, I've been working with this particular page turn, and it's pretty sweet.  But, I for the life of me can't figure out how to make thumbnails work.

 If anyone has worked with this particular source and knows how to make a button click "jump" to a certain page and could help me figure it out, I would be most obliged.  I've figured out some bits, but have only gotten so far as:

function Btn2Down(sender, mouseEventArgs) {

     PageTurnFramework.prototype.goToPage(1);

}

 This seems like it should work, but doesn't, and I'm not exactly sure why.  I'm not too familiar with Javascript though, so I'm wondering if I'm missing something simple.  So if anyone's figured this out already and could help, thanks much!

cjhutchings
cjhutchings

Member

Member

79 points

85 Posts

Re: Page Turn Code Sample in Silverlight 2.0

Nevermind, I figured it out.

vraopolisetti
vraopoli...

Member

Member

8 points

4 Posts

Re: Page Turn Code Sample in Silverlight 2.0

Look at this: Silverlight 2 Beta 2 Page turn in C#

 http://blogs.msdn.com/mitsu/archive/2008/06/10/wpf-and-silverlight-bookcontrols-source-code-available.aspx

 Venkat Polisetti

cjhutchings:

Nevermind, I figured it out.

sealightPT
sealightPT

Member

Member

16 points

3 Posts

Re: Page Turn Code Sample in Silverlight 2.0

You have here another nice implementation:

Silverlight 2 Beta 2 Page Turn

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities