/// <summary> /// Initializes a new instance of the <see cref="SpatialHeaderControl"/> class. /// </summary> public SpatialHeaderControl() { _menuBar = new MenuBarHeaderControl(); _menuBar.RootItemSelected += (sender, args) => { RootItemSelected?.Invoke(this, args); }; }
/// <summary> /// Occurs when a root item is selected by the user. /// This event also occurs after the SelectRoot method is called. /// </summary> /// <param name="key">The key of the new selected root item.</param> protected void OnRootItemSelected(string key) { RootItemSelected?.Invoke(this, new RootItemEventArgs(key)); }