protected override void OnInitialized() { if (ParentTabs != null) { ParentTabs.HookPanel(Name); } if (ParentTabsContent != null) { ParentTabsContent.Hook(Name); } base.OnInitialized(); }
protected override void OnInitialized() { if (ParentTabs != null) { ParentTabs.HookPanel(Name); Active = Name == ParentTabs.SelectedTab; ParentTabs.StateChanged += OnTabsContentStateChanged; } if (ParentTabsContent != null) { ParentTabsContent.Hook(Name); Active = Name == ParentTabsContent.SelectedPanel; ParentTabsContent.StateChanged += OnTabsContentStateChanged; } base.OnInitialized(); }