private void LoadXamlForWpf()
        {
            try
            {
                var localLoader = new WpfXamlStreamLoader(new TypeFactory());

                var visualTree = localLoader.Load(Xaml);
                var window = GetVisualizerWindow(visualTree);
                window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                window.DataContext = new TestViewModel();
                window.Show();

            }
            catch (Exception e)
            {
                ShowProblemLoadingError(e);
            }
        }
 protected GivenAXamlXmlLoader()
 {
     XamlStreamLoader = new WpfXamlStreamLoader(new TypeFactory());
 }