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

            base.OnInitialized();
        }
예제 #2
0
        internal void Hook(BarDropdown barDropdown)
        {
            this.barDropdown = barDropdown;

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