public ToolbarControl() { this.InitializeComponent(); this.m_Renderer = new HorizontalToolbarRenderer(this); this.EnableEvents(); this.InitTouchTool(); float num = base.CurrentAutoScaleDimensions.Height / 96f; ToolbarItem.m_VgaOffset = (num > 1f) ? 2 : 1; }
private void OnDockTypeChanged() { if (this.m_DockType == ToolbarDockType.Horizontal) { this.m_Renderer = new HorizontalToolbarRenderer(this); } else { this.m_Renderer = new VerticalToolbarRenderer(this); } base.Invalidate(); }