()
| 724 | |
| 725 | /// <inheritdoc /> |
| 726 | public override void OnDestroy() |
| 727 | { |
| 728 | // Steal focus from children |
| 729 | if (ContainsFocus) |
| 730 | { |
| 731 | Focus(); |
| 732 | } |
| 733 | |
| 734 | // Disable layout |
| 735 | if (!_isLayoutLocked) |
| 736 | { |
| 737 | LockChildrenRecursive(); |
| 738 | } |
| 739 | |
| 740 | base.OnDestroy(); |
| 741 | |
| 742 | // Pass event further |
| 743 | for (int i = 0; i < _children.Count; i++) |
| 744 | { |
| 745 | _children[i].OnDestroy(); |
| 746 | } |
| 747 | _children.Clear(); |
| 748 | } |
| 749 | |
| 750 | /// <inheritdoc /> |
| 751 | public override bool IsTouchOver |