private void InitializeMenuItems() { menuLayout.Clear(); foreach (var tab in tabs) { menuLayout.Add(new Label() { Text = tab.Text }); } }