btnStartLineButton = new Button { Content = "Start Line", };
btnStartLineButton.FontStyle = FontStyles.Normal;
btnStartLineButton.FontSize = 6.0;
btnStartLineButton.FontFamily = new FontFamily("Arial");
chartWindow.MainMenu.Add(btnStartLineButton);
chartWindow.MainTabControl.SelectionChanged += MySelectionChangedHandler;
btnStartLineButton.Click += btnStarLine_Click;
AutomationProperties.SetAutomationId(btnStartLineB utton, "startLineButton");
everything works except the font family and the size of the font.
Comment