This commit is contained in:
NaBian committed 2019-12-03 23:34:20 +08:00
1 parent ca93d62316
commit e041f73223
1 file changed
+9 -1
@@ -102,7 +102,15 @@ namespace HandyControl.Controls
/// </summary> /// </summary>
internal TabPanel TabPanel internal TabPanel TabPanel
{ {
get => _tabPanel ??= TabControlParent.HeaderPanel; get
{
if (_tabPanel == null && TabControlParent != null)
{
_tabPanel = TabControlParent.HeaderPanel;
}
return _tabPanel;
}
set => _tabPanel = value; set => _tabPanel = value;
} }