I am embarking on development of a Silverlight based website. I am the lone developer and am doing it on my own (ie, not for any company). Now I want to load a lot of textual content on the website along with animations and rich user interfaces that can be created using Silverlight. The text content may change from time to time and when that happens, I dont want to do a lot of rework. So I m thinking to load the text from a Word/txt file into controls and whenever new content arrives/existing content is modified, I just have to append it to the Word/txt file. This way the application itself remains untouched, only the file contents keep changing. Silverlight doesn't support FlowDocument. RichTextBox doesnt have a Load or LoadFile property. So how do I go about this? Should I make use of Frame, Downloader and similar other controls as well? What do you all suggest? What would be the best approach to this?
views:
22answers:
1
+1
A:
The RichTextBox
does have a Xaml
property so you could download Xaml files containing the restricted set of textual elements that RichTextBox
supports. You could also create a Silverlight editor around which you could create and upload this Xaml text content.
However have you considered whether Silverlight is the right platform to deliver primarily textual content? HTML is pretty good at that and with frameworks such as JQuery you can create quite interactive experiences that work well across browsers.
AnthonyWJones
2010-08-26 17:24:48
Enough already
2010-08-26 17:33:26
Ye, I know I can do it with HTML but I want to try and achieve this using Silverlight. Xaml property sounds good, but won't it require lot of formatting?
Mamta Dalal
2010-08-26 17:33:38
@mamtadalal: The amount of formatting is entirely down to how much much formatting you really want. It could be just series of `<paragraph>` elements if thats all you want. Of course if you want no formatting then just use a `TextBox`.
AnthonyWJones
2010-08-26 21:41:33
Anthony and HiTechMagic, thanks for your replies. Anthony, you wrote "You could also create a Silverlight editor around which you could create and upload this Xaml text content." Can you list some Silverlight editors?
Mamta Dalal
2010-08-27 03:23:21