Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
How do I set a Statusbar with 2 Panels to appear on the left and right
posted

I have a status bar with 2 panels to show the product name and date. I want the date to appear on the right hand side of the status bar whilst the product name on the left.  How can I do this? Do I just set the InterPanelSpacing to 790 or something?

  • 20872
    Verified Answer
    Offline posted

    Hello,

    Please let us know if you need any further assitance with this matter.

  • 469350
    Offline posted

    Hi,

    What you do is put a panel in between the two and set it to spring so that it fills all of the available space.


                UltraStatusPanel textPanel = this.ultraStatusBar1.Panels.Add(Infragistics.Win.UltraWinStatusBar.PanelStyle.Text);
                textPanel.Text = "Some Text";

                UltraStatusPanel springPanel = this.ultraStatusBar1.Panels.Add(Infragistics.Win.UltraWinStatusBar.PanelStyle.Text);
                springPanel.SizingMode = PanelSizingMode.Spring;
               
                UltraStatusPanel datePanel = this.ultraStatusBar1.Panels.Add(Infragistics.Win.UltraWinStatusBar.PanelStyle.Date);