How to insert UserControl into TabPage in .NET5 WPF ?

JerryM 1,076 Reputation points

I need to insert a UserControl onto a TabPage on a main form but it does not work for me.
I have .NET5 WPF project in MS VS 2019 v 16.9.4.
Can someone help me ? Here is my source code:

The command <app:ProcessView /> does not work and shows me this error:

Severity Code Description Project File Line Suppression State
Error XDG0008 The name "UserControl1" does not exist in the namespace "clr-namespace:WpfApp". WpfApp c:\1\WpfApp4 TabControl\WpfApp\WpfApp\MainWindow.xaml 12

thanks Jerry

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,185 questions
No comments
{count} votes

Accepted answer
  1. Viorel 82,911 Reputation points

    Try rebuilding the solution using Build, Rebuild Solution menu command. Close and reopen the designers.

    No comments

2 additional answers

Sort by: Most helpful
  1. JerryM 1,076 Reputation points

    wooooou it is working ok... :) thanks

    and by the way, do you know how to insert it dynamically based on "code behind" ???

  2. JerryM 1,076 Reputation points

    thank you ... :)

    No comments