diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-12-27 16:20:19 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-12-27 16:20:19 +0100 |
| commit | 2b4455e6bf46809f699a3fcf1d51e8e99fbcf6f8 (patch) | |
| tree | 142f5f765a01a2c469bb8bc814b3ed38bdfc2c4c /src/GraphicObjects/TabItem.cs | |
| parent | 66fb8b51703e2516a04504398d5ab7ed9af6840b (diff) | |
use LogicalParent in binding, debug Parenting and DS changes in several classes
Diffstat (limited to 'src/GraphicObjects/TabItem.cs')
| -rw-r--r-- | src/GraphicObjects/TabItem.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/GraphicObjects/TabItem.cs b/src/GraphicObjects/TabItem.cs index 078fd04d..cd57b221 100644 --- a/src/GraphicObjects/TabItem.cs +++ b/src/GraphicObjects/TabItem.cs @@ -46,7 +46,13 @@ namespace Crow return _contentContainer == null ? null : _contentContainer.Child; } set { + if (Content != null) { + Content.LogicalParent = null; + _contentContainer.SetChild (null); + } _contentContainer.SetChild(value); + if (value != null) + value.LogicalParent = this; } } protected override void loadTemplate(GraphicObject template = null) |