private ControlVisibility CalculateEffectiveVisibility() { if (Parent == null) { return(Visibility); } return(Visibility.Combine(Parent.EffectiveVisibility)); }