title: C# Add Widgets menu like in example with crated ASPxDockPanels in same file. (devExpress)
body: <p>i have a lot of <strong>ASPxDockPanels</strong> in my <code>default.aspx.cs</code> file. I'm creating on page loud like this.</p>
  <p>Code</p>
  <pre><code>  ASPxDockPanel example = new ASPxDockPanel();
      example.ID = &quot;Example&quot;;
      example.EncodeHtml = false;
      example.Styles.Header.Wrap = DevExpress.Utils.DefaultBoolean.True;
      example.HeaderText =  string.Format(@&quot;&lt;div class='container'&gt;
          &lt;h2 class='heading heading--l'&gt;{0}&lt;/h2&gt;
      &lt;/div&gt;&quot;, exampleheadertext);
  
      example.ShowCloseButton = true;
      example.Controls.Add(divbody);
      example.OwnerZoneUID = &quot;example&quot;;
      Page.Form.Controls.Add(example);
  </code></pre>
  <p>I have same dock panel about 7, i want make something like this example: <a href="https://demos.devexpress.com/ASPxDockAndPopupsDemos/Docking/Widgets.aspx" rel="nofollow noreferrer">https://demos.devexpress.com/ASPxDockAndPopupsDemos/Docking/Widgets.aspx</a></p>
  <p>In this file all menu items creating in different files, and using a lot of aspx files. I need create menu bar in my <code>default.aspx.cs</code> because my panel functionality creating in here.</p>
  <p>So my structure something like this.</p>
  <p>In default.aspx i creating <strong>ASPxDockZone</strong> and in default.aspx.cs creating panel with example.OwnerZoneUID = &quot;example&quot;;</p>
  <pre><code>&lt;dxp:ASPxDockZone runat=&quot;server&quot; ID=&quot;ASPxDockZone1&quot; ZoneUID=&quot;example&quot; CssClass=&quot;app__block&quot;
      Width=&quot;100%&quot; PanelSpacing=&quot;1&quot;&gt;
  &lt;/dxp:ASPxDockZone&gt;
  </code></pre>
  <p>In conclusion I want make my panels with menu like in example (with img) in <code>defoult.aspx.cs</code> file using C#.
  <a href="https://i.stack.imgur.com/q9QGC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q9QGC.png" alt="enter image description here" /></a></p>
  <p>Thank you for your help.</p>