by Bron Skinner
25. January 2011 22:51
So a pretty quick post today - I was waiting on a business call yesterday and decided to see if I could develop a simple loader class - granted there are a number of things I would like to (and probably will in the near future) such as load percent tracking and depiction through some means of graphical alteration (particle density/speed/radial travel distance), here's my 20 minute loader (note that I didn't use any XAML or an IDE to construct storyboards/shapes/paths/etc.)
Class Properties:
DispatcherTimer dp_main;
TimeSpan particleInterval = TimeSpan.FromSeconds(0.2);
int particleDurationMin = 3;
int particleDurationMax = 7;
int maxParticleDistance = 250;
int minParticleDistance = 75;
int numParticles = 18;
enum FloatType { Wavey, Straight, CurvedPath }
FloatType floatType;
Ellipse[] particles;
int particleIndex = 0;
Random rand;
int radiusMin = 15;
int radiusMax = 30;
Brush[] particleColors;
f4ecadb2-9d39-496c-ba81-a47d8d7496df|0|.0
Tags:
Blog
by Bron Skinner
1. December 2010 02:25
I've been working on a Document Editor in Silverlight using the RichTextBox control.

I've found the most difficult part of the task is configuring custom actions against existing elements in the RTB control. E.g. detection of the type of inline element you're clicking such as a hyperlink and the generation of a contextpopup that allows you to remove/edit/etc.
I've also found that when saving content containing images, the images are either lost when loaded back into the editor, or not saved properly in the first place.
If you read my last post, I've used the toolbar control (above) to begin adding links to basic functionality (add/open/close/save/etc.)
There's still a lot of work to do, many cool applications with this little control - I intend to start by adding a management UI for application technical documentation objects, hierarchy, and the ability to link these documents to specific controls within an application by id. As well, i'm working on a way of handling command parameters for links added within a document, allowing users to link doucments to other doduments or fire application specific events.
The next peice after I get the basics completed on this editor is to create the document viewer. I'll post an update on these controls later.
*Quick note - I'm still working on the new Digitalboon site, it should be out reasonably soon. It's going to be pretty cool if you ask me ;)