protected override void Arrange() { base.Arrange(); SectionWithReference = new SectionWithReference(); SectionWithReference.ItemsCollection.Add(new NamedReferencedItem() { Name = "FirstItem" }); SectionViewModel = SectionViewModel.CreateSection(Container, "testSection", SectionWithReference); ReferencingProperty = (ElementReferenceProperty)SectionViewModel.Property("DefaultItem"); ReferencingProperty.Initialize(null); }
protected override void Arrange() { base.Arrange(); SectionWithReference = new SectionWithReference(); SectionWithReference.ItemsCollection.Add(new NamedReferencedItem() { Name = "FirstItem" }); SectionViewModel = SectionViewModel.CreateSection(Container, "testSection", SectionWithReference); ReferencingProperty = (ElementReferenceProperty)SectionViewModel.Property("DefaultItem"); ReferencingProperty.Initialize(null); }