Quantcast
Channel: Adding Button in StatusBar !
Viewing all articles
Browse latest Browse all 23

Adding Button in StatusBar !

$
0
0
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.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..

 


Viewing all articles
Browse latest Browse all 23

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>