I have most menu items set as follows ...
topMenuItem1 = new Gui.Tools.NTMenuItem()
{
Header = "Menu Item 1",
Style = System.Windows.Application.Current.TryFindResource ("InstrumentMenuItem") as Style
};
topMenuItem1.Click += TopMenuItem1_Click;
etc
In the menu i also have added a checkbox item ...
checkboxOption = new System.Windows.Controls.CheckBox();
i then setup the attributes for this
Height
Content
IsChecked etc
All works fine - question is how can i get the Font or fontstyle to be the same as the above style for topMenuItem1 ?
I realise this is a ninjatrader.gui component - but is there a way to derive the font or fontstyle from this Style to then apply to the checkbox
OR
is there a ninjatrade.gui checkbox i can use and set the style and content and all the other attributes ie the callbacks for checked and unchecked?
At the moment i can see the font is different (but not majorly) but would like to keep it in similar 'style'
thanks
Comment