title: Adding items to PopupMenu
body: <p>I am trying to find how I can add items to devExpress PopupMenu. I have tried the following:</p>
  
  <pre><code>        manager = new BarManager();
          listBoxMenu = new PopupMenu(manager);
  
          listBoxMenu.ItemLinks.Add(manager.Items["Remove item"]);
          listBoxMenu.ItemLinks.Add(manager.Items["Clear items"]);
  </code></pre>
  
  <p>As shown here <code>http://documentation.devexpress.com/#WindowsForms/CustomDocument5472</code> (at the bottom), but it gives me an error saying the item is not initialized.</p>
  
  <p>What is the proper way to add items? I can't find it anywhere.</p>
  
  <p>Edit, here is how I did it:</p>
  
  <pre><code>        //Creates the popup menu to be used for the keywords listbox
          manager = new BarManager();
          listBoxMenu = new PopupMenu(manager);
  
          item = new BarButtonItem(manager, "Copy");
          item2 = new BarButtonItem(manager, "Clear Item");
          item3 = new BarButtonItem(manager, "Clear All Items");
  
          listBoxMenu.ItemLinks.Add(item);
          listBoxMenu.ItemLinks.Add(item2);
          listBoxMenu.ItemLinks.Add(item3);
  
          //Adds the seperator on the second item
          item2.Links[0].BeginGroup = true;
  
          manager.ItemClick += manager_ItemClick;
  </code></pre>