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 futuros, Today, 06:33 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by UltraNIX, Today, 06:17 AM
    1 response
    7 views
    0 likes
    Last Post UltraNIX  
    Started by knarfoe, Today, 04:01 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by jukilo2000, Today, 02:28 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by iamkajal, Today, 01:27 AM
    0 responses
    4 views
    0 likes
    Last Post iamkajal  
    Working...
    X