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