Exemplo n.º 1
0
        public void ChildPropertyFailOnForeignParent()
        {
            var p = new ScrollPanel(LayoutTestStyle.Create());

            Assert.Throws <InvalidOperationException>(
                () =>
            {
                var child = new LayoutTestWidget();
                child.AddNotify(new LayoutTestWidget());
                p.Content = child;
            });
        }