There is XAML code and there is a class CustomVisualFrameworkElement , which is inherited from FrameworkElement and implements some shapes using Visual . But for some reason, XAML does not see this class, although I connect the space that contains the class CustomVisualFrameworkElement
XAML CODE:
<Window x:Class="RenderingWithVisuals.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:RenderingWithVisuals" //Вот тут я подключаю пространство в котором находится класс CustomVisualFrameworkElement mc:Ignorable="d" Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded"> <StackPanel Name="MyStackPAnel"> <Image Height="80" Name="MyImage" /> <!--Теперь используем наш класс, который содержит в себе фигуры и инфраструктуру от FrameworkElement--> <custom: CustomVisualFrameworkElement/> //Вот тут не видит класс </StackPanel> </Window> 

xmlns:localdeclared there, and in fact you usecustom:CustomVisualFrameworkElement. - VladD<local:CustomVisualFrameworkElement/>from XAML, (2) Recompile the project and make sure that it compiles without errors, (3) Add<local:CustomVisualFrameworkElement/>back? - VladD