I would like to achieve a similar effect like in wpf application, where you have a XAML hierarchy, disabling one of the ancestors makes all of its children to be disabled as