Bob Bao I am trying your code
this.statusBar = new System.Windows.Controls.Primitives.StatusBar();
this.statusBar.SetValue(DockPanel.DockProperty,Dock.Bottom )
this.statusBar.Visibility = Visibility.Visible;
this.statusBar = new System.Windows.Controls.Primitives.StatusBar();
this.statusBar.SetValue(DockPanel.DockProperty,Dock.Bottom )
this.statusBar.Visibility = Visibility.Visible;
this.buttonOK= new System.Windows.Controls.Button();
this.buttonOK.Content = "Generate Output";
this.buttonOK.Margin = new Thickness(0, 0, 0, 0);
this.statusBar.Items.Add(this.buttonOK);
this.canvas.Children.Add(this.statusBar);
But I dont get "Bottom" as value for Dock enum. I see CompraeTo(), Equals(), ToString() etc methods only..