I'm a newbie at using WPF. I have a project that is a GUI that has a number of tabs displaying information in different ways. One of my tabs I want to be a sort of "google earth" type view. Where I can zoom and pan, etc.
After reading around a bit, I decided to use WPF to accomplish this.
So, I took my windows Form, which has a tab control with tab pages. On one of the tab pages, I added a xaml user control via the element host. So, I guess what I have, as I understand it, is a xaml control, added to a tab page control, via an element host.
Now, my xaml user control, right now, is super simple, just a hello world button. I know I eventually want to add more buttons and other controls on the fly (programatically). So I am just trying to do a simple test where I progrmatically add another button to my xaml user control.
I don't know how to do this in code. Am I adding it to the xaml user control, if so, how? Am I adding it to the element host? The tab page?? I'm not really sure how to begin.