/// <summary>
 /// Initializes a new instance of the <see cref="ElasticLookupControlTemplate" /> class.
 /// </summary>
 public ElasticLookupControlTemplate()
     : base()
 {
     typeAndFindPanel.SuspendLayout();
     typeAndFindPanel.Root.BeginInit();
     typeAndFindPanel.Root.Remove(searchActionContainerLayoutItem);
     typeAndFindPanel.Root.Remove(typeValueLayoutItem);
     typeAndFindPanel.Height          += 5;
     elasticActionContainerLayoutGroup = new LayoutControlGroup();
     elasticActionContainerLayoutItem  = new LayoutControlItem();
     elasticActionContainer            = new ButtonsContainer();
     elasticActionContainerLayoutGroup.BeginInit();
     elasticActionContainerLayoutItem.BeginInit();
     elasticActionContainer.BeginInit();
     elasticActionContainerLayoutGroup.TextVisible         = false;
     elasticActionContainerLayoutGroup.GroupBordersVisible = false;
     elasticActionContainerLayoutGroup.DefaultLayoutType   = LayoutType.Horizontal;
     elasticActionContainerLayoutItem.Control          = elasticActionContainer;
     elasticActionContainerLayoutItem.Padding          = new Padding(0);
     elasticActionContainerLayoutItem.Name             = nameof(elasticActionContainerLayoutItem);
     elasticActionContainerLayoutItem.TextVisible      = false;
     elasticActionContainerLayoutItem.ControlAlignment = ContentAlignment.MiddleRight;
     elasticActionContainer.AllowCustomization         = false;
     elasticActionContainer.ContainerId                      = "ElasticActionContainer";
     elasticActionContainer.Name                             = nameof(elasticActionContainer);
     elasticActionContainer.HideItemsCompletely              = false;
     elasticActionContainer.Dock                             = System.Windows.Forms.DockStyle.Fill;
     elasticActionContainer.PaintStyle                       = ActionItemPaintStyle.Caption;
     elasticActionContainer.Root.DefaultLayoutType           = LayoutType.Horizontal;
     elasticActionContainer.Root.EnableIndentsWithoutBorders = DefaultBoolean.True;
     elasticActionContainer.Root.GroupBordersVisible         = false;
     elasticActionContainer.Root.Location                    = new Point(0, 0);
     elasticActionContainer.Root.Name                        = "elasticActionContainerLayoutControlGroup";
     elasticActionContainer.Root.Padding                     = new Padding(0, 0, 0, 0);
     elasticActionContainer.Root.Spacing                     = new Padding(0, 0, 0, 0);
     elasticActionContainer.TabStop                          = false;
     ActionContainersManager.ActionContainerComponents.Add(elasticActionContainer);
     elasticActionContainerLayoutGroup.AddItem(typeValueLayoutItem);
     elasticActionContainerLayoutGroup.AddItem(elasticActionContainerLayoutItem);
     typeAndFindPanel.Root.AddItem(elasticActionContainerLayoutGroup);
     typeAndFindPanel.Root.AddItem(searchActionContainerLayoutItem);
     elasticActionContainer.EndInit();
     elasticActionContainerLayoutItem.EndInit();
     elasticActionContainerLayoutGroup.EndInit();
     typeAndFindPanel.Root.EndInit();
     typeAndFindPanel.ResumeLayout(false);
 }