TemplatedWizardStep.cs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. //
  2. // (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
  3. //
  4. // Authors:
  5. // Vladimir Krasnov <[email protected]>
  6. //
  7. // Permission is hereby granted, free of charge, to any person obtaining
  8. // a copy of this software and associated documentation files (the
  9. // "Software"), to deal in the Software without restriction, including
  10. // without limitation the rights to use, copy, modify, merge, publish,
  11. // distribute, sublicense, and/or sell copies of the Software, and to
  12. // permit persons to whom the Software is furnished to do so, subject to
  13. // the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be
  16. // included in all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  19. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  21. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  22. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  23. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  24. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. //
  26. #if NET_2_0
  27. using System;
  28. using System.Collections.Generic;
  29. using System.ComponentModel;
  30. using System.Text;
  31. namespace System.Web.UI.WebControls
  32. {
  33. [ThemeableAttribute (true)]
  34. [BindableAttribute (false)]
  35. [PersistChildren (false)]
  36. [ParseChildren (true)]
  37. [ToolboxItem (false)]
  38. [ControlBuilder (typeof (WizardStepControlBuilder))]
  39. public class TemplatedWizardStep : WizardStepBase
  40. {
  41. ITemplate _contentTemplate = null;
  42. Control _contentTemplateContainer = null;
  43. ITemplate _customNavigationTemplate = null;
  44. Control _customNavigationTemplateContainer = null;
  45. [DefaultValue (null)]
  46. [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
  47. [PersistenceMode (PersistenceMode.InnerProperty)]
  48. [Browsable (false)]
  49. [TemplateContainerAttribute (typeof (System.Web.UI.WebControls.Wizard))]
  50. public virtual ITemplate ContentTemplate {
  51. get { return _contentTemplate; }
  52. set { _contentTemplate = value; }
  53. }
  54. [Browsable (false)]
  55. [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
  56. public Control ContentTemplateContainer {
  57. get { return _contentTemplateContainer; }
  58. internal set { _contentTemplateContainer = value; }
  59. }
  60. [DefaultValue (null)]
  61. [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
  62. [PersistenceMode (PersistenceMode.InnerProperty)]
  63. [Browsable (false)]
  64. [TemplateContainerAttribute (typeof (System.Web.UI.WebControls.Wizard))]
  65. public virtual ITemplate CustomNavigationTemplate
  66. {
  67. get { return _customNavigationTemplate; }
  68. set { _customNavigationTemplate = value; }
  69. }
  70. [Browsable (false)]
  71. [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
  72. [Bindable (false)]
  73. public Control CustomNavigationTemplateContainer {
  74. get { return _customNavigationTemplateContainer; }
  75. internal set { _customNavigationTemplateContainer = value; }
  76. }
  77. [Browsable (true)]
  78. [MonoTODO("Why override?")]
  79. public override string SkinID {
  80. get { return base.SkinID; }
  81. set { base.SkinID = value; }
  82. }
  83. }
  84. }
  85. #endif