I used this code:
btnRuler = new System.Windows.Controls.Button();
btnRuler.ToolTip = "Ruler";
btnRuler.Background = Brushes.Transparent;
btnRuler.Width = 205;
btnRuler.Height = 30;
btnRuler.Content = NinjaTrader.Gui.Tools.Icons.DrawRuler; //"Ruler";
btnRuler.Click += btnRuler_Click;
System.Windows.Controls.Grid.SetRow(btnRuler, 1);
VerticalStackPanel.Children.Add(btnRuler);
Now as you can see in the image the first button which is the ruler button it only draws a little box image. Now my problem is how can I add the draw objects icon successfully? I want those buttons in the image to have an draw objects icon only not a text. I will appreciate someone that could help. Thanks.
Comment