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

Adding Button in StatusBar !

$
0
0

No guys, nothing seems to be working.

I tried this:

 

            DockPanel myDockPanel = new DockPanel();
            myDockPanel.LastChildFill = true;


            this.statusBar = new System.Windows.Controls.Primitives.StatusBar();
            DockPanel.SetDock(this.statusBar, System.Windows.Controls.Dock.Bottom);
            myDockPanel.Children.Add(this.statusBar);
       
            this.canvasPanel.Children.Add(myDockPanel);

 

and This as well:

 

           this.statusBar.SetValue(DockPanel.DockProperty, System.Windows.Controls.Dock.Bottom);

 

But the status bar keeps appearing on top left corner!!!


Viewing all articles
Browse latest Browse all 23

Trending Articles



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