I have an NTMenuItem i set up and then attach to chartcontrol parent.
All good
I set the style of this as follows :
Margin = new System.Windows.Thickness(0),
Padding = new System.Windows.Thickness(1),
VerticalAlignment = System.Windows.VerticalAlignment.Center,
Style = System.Windows.Application.Current.TryFindResource ("MainMenuItem") as System.Windows.Style
I then add a ToggleButton new System.Windows.Controls.Primitives.ToggleButton();
And wanting to set this to be the same style as menuitem -
when skin color is changed in ninja from dark to light i want them to be in synch.
At moment i am setting the Foreground of the togglebutton
but tried to set the Style and it seemed to mess up the format and layout.
Is the problem that i only set the style and not try to set other attributes .. as i still had other parts ie FontFamily FontSize adn Background set.
wondering how to align the styles and in order to manage different background and skins selected by user
thanks
Comment