public TextureManager()
        {
            InitializeComponent();

            DataGridTemplateColumn col = new DataGridTemplateColumn();
            Binding imgBinding = new Binding("Name") { Converter = new Controls.PathToImageConverter() };
            FrameworkElementFactory imgFactory = new FrameworkElementFactory(typeof(Image));
            imgFactory.SetBinding(Image.SourceProperty, imgBinding);
            imgFactory.SetValue(Image.MaxHeightProperty, 64.0);
            imgFactory.SetValue(Image.MaxWidthProperty, 64.0);
            imgFactory.SetValue(Image.TagProperty, "PreviewImage");
            ((DataGridTemplateColumn)col).CellTemplate = new DataTemplate();
            ((DataGridTemplateColumn)col).CellTemplate.VisualTree = imgFactory;
            col.Header = "Preview";
            gridView.Columns.Add(col);

            formStack.Children.Add(textureForm_ = new ReflectiveForm(typeof(Urho.Texture)));
            texTree.DataContext = Project.inst().Textures;
            texTree.SelectedItemChanged += texTree_SelectedItemChanged;
            gridView.DataContext = flat_ = Project.inst().Textures.GetFlat();

            formStack.Children.Add(nothing_ = new NothingHere("Texture"));
            nothing_.Visibility = System.Windows.Visibility.Visible;
            textureForm_.Visibility = System.Windows.Visibility.Collapsed;
        }
 public EffectList()
 {
     InitializeComponent();
     form.Children.Add(form_ = new ReflectiveForm(typeof(Urho.ParticleEffect)));
     form.Children.Add(nothing_ = new NothingHere("Particle Effect"));
     nothing_.Visibility = System.Windows.Visibility.Visible;
     form_.Visibility = System.Windows.Visibility.Collapsed;
 }
 public MaterialEditor()
 {
     InitializeComponent();
     formStack.Children.Add(form_ = new ReflectiveForm(typeof(Urho.Material)));
     texTree.DataContext = Project.inst().Materials;
     texTree.SelectedItemChanged += texTree_SelectedItemChanged;
     formStack.Children.Add(nothing_ = new NothingHere("Material"));
     nothing_.Visibility = System.Windows.Visibility.Visible;
     form_.Visibility = System.Windows.Visibility.Collapsed;
 }