示例#1
0
        protected override void OnInitialized()
        {
            if (ParentTabs != null)
            {
                ParentTabs.HookPanel(Name);
            }

            if (ParentTabsContent != null)
            {
                ParentTabsContent.Hook(Name);
            }

            base.OnInitialized();
        }
示例#2
0
        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();
        }