public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(SiteMapPath));
     base.Initialize(component);
     this._navigationPath = (SiteMapPath) component;
     if (base.View != null)
     {
         base.View.SetFlags(ViewFlags.TemplateEditing, true);
     }
 }
		public static void FireEvents_Init (Page p)
		{
			SiteMapPath s = new SiteMapPath ();
			s.ItemCreated += new SiteMapNodeItemEventHandler (s_ItemCreated);
			s.ItemDataBound += new SiteMapNodeItemEventHandler (s_ItemDataBound);
			p.Form.Controls.Add (s);
		}
		public static void DoTestPropertyRender (Page p)
		{
			SiteMapPath smp = new SiteMapPath ();
			smp.BackColor = Color.Red;
			smp.BorderColor = Color.Red;
			smp.BorderStyle = BorderStyle.Dashed;
			smp.BorderWidth = 3;
			smp.ForeColor = Color.Red;
			smp.PathDirection = PathDirection.CurrentToRoot;
			smp.PathSeparator = "-";

			LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
			LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
			p.Form.Controls.Add (lcb);
			p.Form.Controls.Add (smp);
			p.Form.Controls.Add (lce);
		}
		/// <summary>
		/// All this methods are delegates for running tests in host assembly. 
		/// </summary>
		
		public static void DoTestDefaultRender (Page p)
		{
			LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
			LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
			SiteMapPath smp = new SiteMapPath ();
			p.Form.Controls.Add (lcb);
			p.Form.Controls.Add (smp);
			p.Form.Controls.Add (lce);
		}
Example #5
0
		public static void _RenderSiteMapPathProp (Page p)
		{
			SiteMapPath smp = new SiteMapPath ();
			smp.BackColor = Color.Red;
			p.Controls.Add (smp);
		}
Example #6
0
		public static void _RenderSiteMapPath (Page p)
		{
			SiteMapPath smp = new SiteMapPath ();
			p.Controls.Add (smp);
		}