Foreground = Brushes.Green
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Title Bar Menu Item Icon Color
Collapse
X
-
Title Bar Menu Item Icon Color
I'm aware that the color of a custom menu item icon can be changed using:
Is there a way to change the color but also to keep the icon color changing slightly (highlighting) on mouse hover?Code:Tags: None
-
Hello FatCanary,
Thank you for your note.
That would generally be done with WPF Styles.
Here's a general example from this publicly available Stack Overflow link of what I mean by this:
I want to change the background color of a button when IsMouseOver == True <Button Command="{Binding ClickRectangleColorCommand}" Background="{Binding Color, Converter={StaticResource
Please let us know if we may be of further assistance to you.
-
Hello FatCanary,
Thank you for your reply.
You can load XAML from a file that you'd want to put in the Addons folder along with the .cs file. AddOnFramework shows how to load XAML from a file, and SampleWPFModifications shows how you can grab some of the button styles NT uses.
Please let us know if we may be of further assistance to you.
Comment
-
Hi, you can also read this post to change the icon colour
Title Bar Menu Item Icon Color
Comment
-
Hello FatCanary,
Thank you for your reply.
Application.Current.TryFindResource("MainMenuItem" ) is looking for an internal resource to NinjaTrader, this would not be located in BluePrint.xaml.
Here's some documentation from Microsoft that's publicly available on working with Styles with WPF:
Learn about XAML resources in Windows Presentation Foundation (WPF) for .NET. Understand the types of XAML resources related to styles and themes.
Please let us know if we may be of further assistance to you.
Comment
-
Thanks Kate, that is what I suspected.
As it is an internal resource, does that mean the MainMenuItem style cannot be modified by the user?
And, from what you said in an earlier post, I could create my own 'main menu item' style in a xaml file, and use that for custom menu icons?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment