protected override void RegisterClasses() { ClassMapper .Add(() => ClassProvider.BarItem()) .If(() => ClassProvider.BarItemActive(), () => IsActive) .If(() => ClassProvider.BarItemDisabled(), () => IsDisabled) .If(() => ClassProvider.BarItemHasDropdown(), () => IsDropdown) .If(() => ClassProvider.BarItemHasDropdownShow(), () => IsDropdown && barDropdown?.IsOpen == true); base.RegisterClasses(); }