All the addon examples that I've seen posted use an NTWindow to load the XAML elements by using the Content = LoadXAML(); call. I don't have an NTWindow. All I have is a Grid created like this:
// get the grid of the chart window
System.Windows.Controls.Grid chartGrid = chartWindow.MainTabControl.Parent as System.Windows.Controls.Grid;
// create a new grid to hold controls
System.Windows.Controls.Grid buttonGrid; // this holds all my elements
// after inserting a column at the end of the chartGrid
chartGrid.Children.Add(buttonGrid);
How can I load my XAML elements into this buttonGrid like you do with a window? The Grid doesn't seem to have a Content like the NTWindows do.
Thanks for any help!
Comment