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 DannyP96, 05-18-2026, 02:38 PM
    1 response
    89 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    257 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X