Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting an Icon for Reference

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

    Getting an Icon for Reference

    Hello,

    Would it be possible for someone to send over an icon from the main menu? Either the geometry or picture itself, I don't know how NT sets their icons but wither way works.

    My custom icons are a little thick: https://i.imgur.com/fQwkluy.png

    Thanks
    Unsuitable
    NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

    #2
    Hello Unsuitable,

    I am not aware of a way to get icons from existing menus.

    My example creates a custom icon from path geometry.
    Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello ChelseaB,

      That's how I created my icon. I want to match the thickness of the NT Icons. Assuming that the icons are made from path geometry, I could get the path data from one of the icons. It retrieves the bar-style icon. https://i.imgur.com/GSKASCB.png

      Code:
      object[] objs = chartWindow.MainMenu.ToArray();
      System.Windows.Controls.Menu nt = objs[2] as System.Windows.Controls.Menu;
      System.Windows.Controls.ItemCollection itemC = nt.Items;
      NinjaTrader.Gui.Tools.NTMenuItem ntmenuitem = itemC.GetItemAt(0) as NinjaTrader.Gui.Tools.NTMenuItem;
      System.Windows.Media.Geometry geo = ntmenuitem.Icon as System.Windows.Media.Geometry;
      The problem is that I can't find a method to extract the path data from the geometry object (geo). This is a c# related question. The reason for this request is that I require the thickness of the path that scales to one pixel. SVGs don't have pixles so I can't just create a path that is one pixel wide. If I had the path data, I could make an SVG file with that path.

      Unsuitable
      NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

      Comment


        #4
        Hello Unsuitable,

        I'm not aware of a way to extract path geometry from an object, but this thread will remain open for any community members that may know of a way.

        You may consider asking on a forum dedicated to C# and WPF such as StackOverflow.

        NinjaTrader does not make these paths available publicly, however I am happy to submit a feature request for the developers to consider it if you would like.
        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
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        368 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        571 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X