public MainWindow() { InitializeComponent(); Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); renmas = PyWrapper.Renmas.create(); img_viewer = new ImageViewer(); Grid.SetColumn(img_viewer, 0); Grid.SetRow(img_viewer, 1); this.mw_grid.Children.Add(img_viewer); //Options op = new Options(renmas); ToneMappingEditor op = new ToneMappingEditor(renmas); Grid.SetColumn(op, 1); Grid.SetRow(op, 1); this.mw_grid.Children.Add(op); }