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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X