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, 02: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 stafe, Today, 10:43 AM
    0 responses
    7 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by UltraNIX, Today, 09:13 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Tuxstuff215, Today, 06:32 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by carlot, Today, 08:10 AM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by KirkHammett, Yesterday, 11:15 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X