How to insert UserControl into TabPage in .NET5 WPF ?

JerryM 1,076 Reputation points
2021-04-21T13:17:20.14+00:00

Hi,
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:

https://drive.google.com/file/d/1YACmuMXhZllATRnld901q6vDzK9iU0JE/view?usp=sharing

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
    2021-04-21T13:55:35.22+00:00

    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
    2021-04-21T14:37:37.273+00:00

    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
    2021-04-21T18:31:47.32+00:00

    thank you ... :)
    j.

    No comments