private bool ContainedHasLayoutWithColumnName(string columnName) { var walker = new ElementListLayoutWalker(Contained); var element = walker.LayoutElements().OfType <TwoColumnsLayout>().Where(l => l.ColumnName == columnName).FirstOrDefault(); return(element != null); }
protected override void Arrange() { base.Arrange(); var deepestRule = ValidationViewModel.DescendentConfigurationsOfType<AndCompositeValidatorData>() .Where(x => string.Equals(x.NameProperty.Value, DeepestRuleValidatorName)).First(); ruleCollection = (ElementCollectionViewModel) deepestRule.ParentElement; walker = new ElementListLayoutWalker(Layout.Contained); var currentDeepestLayout = walker.LayoutElements().OfType<TwoColumnsLayout>().Where(l => l.Left == deepestRule).First(); layoutHeader = FindHorizontalList(currentDeepestLayout.ColumnName); propertyChangedListener = new PropertyChangedListener(layoutHeader); }
public void then_next_deepest_header_column_is_not_visible() { var walker = new ElementListLayoutWalker(Layout.Contained); var deepestRule = ValidationViewModel.DescendentConfigurationsOfType<AndCompositeValidatorData>().Where( x => string.Equals(x.NameProperty.Value, DeepestRuleValidatorName)).First(); var layoutElement = walker.LayoutElements().OfType<TwoColumnsLayout>().Where(l => l.Left == deepestRule).First(); var nextDeepestHeader = FindHorizontalList(layoutElement.ColumnName).Next; Assert.IsFalse(nextDeepestHeader.CanResize); }
private bool ContainedHasLayoutWithColumnName(string columnName) { var walker = new ElementListLayoutWalker(Contained); var element = walker.LayoutElements().OfType<TwoColumnsLayout>().Where(l => l.ColumnName == columnName).FirstOrDefault(); return (element != null); }