1
This commit is contained in:
@@ -40,6 +40,18 @@ namespace BITKit.UX
|
||||
public new class UxmlFactory : UxmlFactory<TabBar, UxmlTraits> { }
|
||||
// These are USS class names for the control overall and the label.
|
||||
|
||||
public TabBar()
|
||||
{
|
||||
RegisterCallback<AttachToPanelEvent>(UpdateI);
|
||||
RegisterCallback<DetachFromPanelEvent>(UpdateI);
|
||||
RegisterCallback<GeometryChangedEvent>(UpdateI);
|
||||
}
|
||||
|
||||
private void UpdateI(object _)
|
||||
{
|
||||
CurrentTab = _currentTab;
|
||||
}
|
||||
|
||||
public event Action<int> OnTabChanged;
|
||||
|
||||
private Button[] _buttons = Array.Empty<Button>();
|
||||
|
Reference in New Issue
Block a user