public RunaWindow() { InitializeComponent(); glView = new RunaView(); MainViewModel model = new MainViewModel(glView); //MainViewModel model = new MainViewModel(); DataContext = model; }
public Material(RunaView glView) { this.glView = glView; //model list Models = new List <string> { "sphere", "cube", "teapot", "TrefoilKnot", "Torus", "KleinBottle", "MobiusStrip", }; this.ModelName = "sphere"; }
public Material(RunaView glView) { this.glView = glView; //model list Models = new List<string> { "sphere", "cube", "teapot", "TrefoilKnot", "Torus", "KleinBottle", "MobiusStrip", }; this.ModelName = "sphere"; }
/* public MainViewModel() { Model = new TestSimpleTypes2(); SelectedItem = Model; } * */ public MainViewModel(RunaView glView) { Model = new Material(glView); this.SelectedItem = Model; }