Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom WPF ToolBar Position Question

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

    Custom WPF ToolBar Position Question

    Hello Group,

    I am wondering if anyone can help me, I am building a "Market Time" clock. I have added it to the tool bar and would like the position of it to be next to the "interval Link", "Instrument Link" buttons.
    basically position.right on the toolbar

    not sure how to achieve this, and have it play nice with other added toolbar buttons

    attached is the indicator.

    Thanks in advance
    Attached Files

    #2
    Hello BeachTrader11807,

    Unfortunately, this would require advanced C# concept and is not fully supported by the Scripting Support team.

    There can be limitations using unsupported code and advanced C# concepts in a NinjaScript, so your mileage may vary. As of now, we do not have any examples that can be used to navigate that path.​

    I can provide a link to the reference sample that demonstrates how to add buttons and menus to the title bar of a chart, however this will be with the other buttons and icons on the title bar and not within the container holding the inverval link and instrument link buttons.
    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply, I did not know that website existed so stoked to have this as a resource.

      It don't want it to be in the container holding those buttons but just beside them. not sure if this changes your answer or not, I may have to settle for where it is.

      here is a picture to better explain where I would like it.​

      Click image for larger version

Name:	Screenshot 2025-02-13 124703.png
Views:	153
Size:	76.4 KB
ID:	1334668

      Comment


        #4
        Hello BeachTrader11807,

        While I'm not certain this will work, try setting the HorizontalAlignment of the object to HorizontalAlignment.Right.
        Gets or sets the horizontal alignment characteristics applied to this element when it is composed within a parent element, such as a panel or items control.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        557 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X