protected override void OnInitialized() { // link to the parent component BarDropdown?.Hook(this); base.OnInitialized(); }
internal void Hook(BarDropdown barDropdown) { this.barDropdown = barDropdown; MenuChanged(); }
/// <summary> /// Notifies this <see cref="BarItem"/> that one of it's child component is a <see cref="BarDropdown"/>. /// </summary> /// <param name="barDropdown">Reference to the <see cref="BarDropdown"/> placed inside of this <see cref="BarItem"/>.</param> internal void NotifyBarDropdownInitialized(BarDropdown barDropdown) { this.barDropdown = barDropdown; }
public void Close() { BarDropdown?.Close(); }
protected void ClickHandler() { BarDropdown?.Toggle(); }
internal void Hook(BarDropdown barDropdown) { this.barDropdown = barDropdown; }