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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    290 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    185 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    184 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    267 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    218 views
    0 likes
    Last Post CarlTrading  
    Working...
    X