public FrameworkElement BuildForm(IValueEnvironment vEnv, ITypeEnvironment tEnv) { StackPanel sp = new StackPanel(); sp.Children.Add(Statement1.BuildForm(vEnv, tEnv)); sp.Children.Add(Statement2.BuildForm(vEnv, tEnv)); return(sp); }
public FrameworkElement BuildForm(IValueEnvironment vEnv, ITypeEnvironment tEnv) { Style s = new Style(); s.Setters.Add(new Setter(UIElement.VisibilityProperty, Visibility.Collapsed)); s.Setters.Add(new Setter(FrameworkElement.MarginProperty, new Thickness(0))); TabControl t = new TabControl() { ItemContainerStyle = s }; t.Margin = new Thickness(0); t.Padding = new Thickness(0); t.BorderThickness = new Thickness(0); t.Items.Add(Statement1.BuildForm(vEnv, tEnv)); t.Items.Add(Statement2.BuildForm(vEnv, tEnv)); return(t); }