Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change grid location

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Change grid location

    Hi,

    You recommend the use of the UserControlCollection, and a Grid object to place buttons on the chart (and I have your examples working). But how do I then do fine alignment of the Grid so it doesn't overwrite the status lines on the chart?

    HorizontalAlignment and VerticalAlignment are not detailed enough.

    Code:
                        // Add a control grid which will host our custom buttons
                        myGrid = new System.Windows.Controls.Grid
                        {
                          Name = "MyCustomGrid",
                          HorizontalAlignment = HorizontalAlignment.Left,
                          VerticalAlignment = VerticalAlignment.Top,
                        };
    Thanks
    Last edited by bubblegum; 05-26-2019, 03:54 AM.

    #2
    Hello bubblegum,

    You align your grid to the right.

    You could adding padding or margin..

    The Long Short Toolbar Buttons in the User App Share section of the NinjaTrader Ecosystem aligns the buttons on the right.

    https://ninjatraderecosystem.com/use...bar-buttons-2/


    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by vrewoises, Today, 04:31 AM
    0 responses
    4 views
    0 likes
    Last Post vrewoises  
    Started by butt_toast, Yesterday, 09:47 PM
    1 response
    6 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by vrewoises, Today, 03:33 AM
    0 responses
    5 views
    0 likes
    Last Post vrewoises  
    Started by devonburto, Today, 03:11 AM
    0 responses
    2 views
    0 likes
    Last Post devonburto  
    Started by ziemany, Today, 02:54 AM
    0 responses
    2 views
    0 likes
    Last Post ziemany
    by ziemany
     
    Working...
    X