WPF: cannot see my user control in toolbar

I created 2 WPF controls that are in one folder, and I want to add one control to another.

The controls are added to the Win Forms project.

The fact is that in the Win Forms user control, I can see my two WPF controls in the toolbar, but in the WPF designer I do not see any WPF controls. Any ideas why?

And how can I add my control, it's XAML without dragging from the toolbar

I tried using

<UserControl x:
xmlns:my2="my.name.space"
Height="300" Width="300">
<Grid>
    <my2:MyControlName>

    </my2:MyControlName>
</Grid>

But this does not work with type "my2: MyControlName" does not exist

+3
source share
2

, , , XAML, xmlns :

<UserControl xmlns:my2="clr-namespace:my.name.space;assembly=my.assembly"

, UserControl, "; assembly = my.assembly".

+1

Abe.. " " , WPF, DLL, , XAML

0

Source: https://habr.com/ru/post/1775859/


All Articles