Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Control Center Menu Item with Icon

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

    Control Center Menu Item with Icon

    Hi,
    I added a new menu item to the Control Center toolbar. Now I would like to set an icon, similar to the "new", "tools", "workspaces" icons.
    I tried it some different ways, but without any succes. See below what Ive already tried
    How can I add an Icon?


    new NTMenuItem {
    Icon = BitmapImage,
    Icon = ImageBrush,
    Icon = "test.png",
    Icon = "C:/.../test.png",
    }

    Thanks!

    #2
    Hello Bobin,

    Thank you for your post.

    This post explains using a Path Geometry object to try to set the Icon property:

    https://ninjatrader.com/support/foru...86#post1156386

    An example of using a PNG file in a Menu or Button can be found in the SampleWPFModifications example script.
    https://ninjatrader.com/support/foru...07#post1124507

    Edit: Just want to clarify here, SampleWPFModiciations has an example for loading a PNG file as a bitmap image to be used on a Button control so it can be used similarly to a NTMenuItem, a little different than path geometry.

    Please let us know if we may be of further assistance to you.
    Last edited by NinjaTrader_Kate; 11-12-2021, 02:24 PM.

    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