I want to use indentation of the MessageElement to show message threading.  
Looking at the source for message element it looks as though I'll have to fork 
it and modify MessageElement, MessageCell and MessageSummaryView just to 
customise the drawing a little.  I was hoping to be able to just inherit 
MessageElement and tweak it so that I can benefit from any improvements to 
MessageElement in future releases without having to merge them.

Would it be a nice idea (i.e. would a push request be accepted) to modify 
MessageElement and MessageCell to have the type of MessageSummaryView (i.e. the 
drawing behavior) optionally passed into MessageElement as a factory method 
delegate.  This would allow easy customisation by implementing a 
AbstractBaseMessageSummaryView  inheritor on a custom class and passing that 
in. The default constructor could just make the MessageElement use the default 
MessageSummaryView so existing code would still work.

public delegate AbstractBaseMessageSummaryView 
MessageSummaryViewFactoryMethod();

MessageElement(MessageSummaryViewFactoryMethod viewFactory)
{
    //pass view factory into the MessageCell and call it as needed

Is there an better way to do this? Is there a better way to display threading 
than indentation?

Regards,
Felix
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to