Browse Source
When a `TabItem` was created a binding was being set up to the owner `TabControl` but that binding was never being freed. Ideally we'd be setting these properties in XAML rather than hardcoding them in the generator but that would be a breaking change for everyone who re-templated `TabControl`. As a second-best option what we'd do is set up a `$parent` binding in the generator but this isn't available in Avalonia.Controls so had to implement a quick observable which watches for a parent `TabControl` and subscribes to it.pull/5566/head
2 changed files with 53 additions and 3 deletions
Loading…
Reference in new issue