/// <summary> /// Default constructor. /// </summary> public SurfaceWindow1() { InitializeComponent(); // Add handlers for window availability events AddWindowAvailabilityHandlers(); ScatterView sv = new ScatterView(); sv.Items.Add(new Whiteboard() { Width = 300, Height = 300 }); ISBNField isbn = new ISBNField() { Width = 500, Height = 360 }; isbn.parentScatter = sv; sv.Items.Add(isbn); grid.Children.Add(sv); DispatcherTimer timer = new DispatcherTimer() { Interval = new TimeSpan(0, 0, 15000) }; timer.Tick += delegate { sv.Items.Add(new Whiteboard() { Width = 300, Height = 300 }); }; timer.Start(); /*sv.Items.Add(new ScatterViewItem() { Content = new OurWebBrowser(), Width = 800, Height = 600 });*/ WebFactory factory = new WebFactory(sv); factory.NewWebBrowser(); factory.NewWebBrowser(); factory.NewWebBrowser(); }
public WebFactory(ScatterView scatterView) { _scatterView = scatterView; LastFactory = this; }