• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 vantojo, Today, 08:35 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by frankduc, Today, 08:28 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by EddieBeanPit, 06-21-2019, 07:17 PM
    1 response
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by futures2018!, Yesterday, 05:01 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Splex, Today, 12:04 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X