Beispiel #1
0
        protected override void OnInitialized()
        {
            // link to the parent component
            BarDropdown?.Hook(this);

            base.OnInitialized();
        }
        internal void Hook(BarDropdown barDropdown)
        {
            this.barDropdown = barDropdown;

            MenuChanged();
        }
Beispiel #3
0
 /// <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;
 }
Beispiel #4
0
 public void Close()
 {
     BarDropdown?.Close();
 }
Beispiel #5
0
 protected void ClickHandler()
 {
     BarDropdown?.Toggle();
 }
 internal void Hook(BarDropdown barDropdown)
 {
     this.barDropdown = barDropdown;
 }