private void WindowLoaded(object sender, EventArgs e) { MyVisualHost visualHost = new MyVisualHost(); MyCanvas.Children.Add(visualHost); }