I am trying to bind a userControl that I create in a class as property. I couldnt figure out how to show it in XAML.
Example:
public class MainWindowViewModel : ViewModelBase
{
public UserControl myUserControl { get; set; };
public MainWindowViewModel()
: base()
{
_myUserControl = new WelcomePageView());
}
}
In XAML:
<Window c:Class=".."
.
.
.
/>
<???? {Binding myUserControl}>
</Window>
Try