public class MenuItem : Control {
private string m_href;
private string m_text;
public string Text {
get { return m_text; }
set { m_text = value; }
}
protected override void AddParsedSubObject(object obj) {
if ( obj is LiteralControl ) {
Text = ((LiteralControl)obj).Text;
}
}
}
But if you want to parse html, I suggest creating your own Templated Control.
Back to coding.
No comments:
Post a Comment