PostionBarButton.cs 732 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Bowin.Web.Controls.Mvc
  6. {
  7. public class PostionBarButton : LinkButton
  8. {
  9. /// <summary>
  10. /// 超链接显示的文本
  11. /// </summary>
  12. public new string Text { get; set; }
  13. /// <summary>
  14. /// 超链接地址
  15. /// </summary>
  16. public new string Href { get; set; }
  17. /// <summary>
  18. /// 事件绑定
  19. /// </summary>
  20. public new Dictionary<MouseEventEnum, string> Function { get; set; }
  21. public PostionBarButton()
  22. : base()
  23. {
  24. }
  25. public override string Render()
  26. {
  27. base.Text = this.Text;
  28. base.Href = this.Href;
  29. base.Function = this.Function;
  30. return base.Render();
  31. }
  32. }
  33. }