New to WPF, trying to move back and forth between various UserControl
s that I've made.
They're defined in separate files, say f1.xaml
f2
f3
f4
, and then I made a master
view.
Can I import f1
and/or f2
into master
, and then use them with some logic to move between them (https://rachel53461.wordpress.com/2011/05/28/switching-between-viewsusercontrols-using-mvvm/)? In that article, the DataTemplate
s are all inlined.
Is my initial assumption flawed, and I actually need to inline all my views into one massive file?
If I can use external files, how do I import an external XAML UserControl into another XAML?
Tutorial links welcome!
Edit, post-solve
Posting a couple other tutorial links that helped me out: