4

I was wondering what kind of control Amazon has used to display text in their application for Windows Phone 7 ? It must be some kind of custom ones because if I remember correctly there's not support for FlowDocument, Run etc in WP7.

MatthieuGD
  • 4,552
  • 2
  • 30
  • 29

3 Answers3

4

<Run> is supported on WindowsPhone7 - e.g. http://social.msdn.microsoft.com/Forums/en-SG/wpf/thread/ca27556a-a33b-4d4e-82b4-a0ed8596d6a1 - you can see Run used in lots of apps - e.g. the official Twitter app.

This question - Programmatically determining max fit in textbox (WP7) - analyses the Kindle UI control a little bit - it leads me to think that Amazon are using a TextBlock control for the main page, and are doing some manual calculations to work out how many words are on the current page.

Community
  • 1
  • 1
Stuart
  • 66,722
  • 7
  • 114
  • 165
0

Kindle ebooks are primarily HTML (output of conversion from multiple formats), so it would be some kind of WebBrower control.

Todd Main
  • 28,951
  • 11
  • 82
  • 146
  • The Kindle app on the phone definitely doesn't use a WebBrowser control. Sorry. Some of the tell tale signs of a WBC (such as behaviour you can't override) just aren't there. – Matt Lacey Mar 11 '11 at 09:24
0

They haven't detailed this publicly.

I strongly suspect that they have their own controls to wrap a canvas which they dynamically populate with the text and then animate with their own manipulation code.

Matt Lacey
  • 65,560
  • 11
  • 91
  • 143