Вход на сайт
WPF - требуется ИИ, можно с детьми
441 просмотров
Перейти к просмотру всей ветки
AlexNek патриот
в ответ moose 28.12.17 22:28
Спасибо - Ответ невозможно
When you define a arbitrary Control in Resources, you can use it in the future in Control which have property Content and derived from Control class. These are the followings: ContentControl, Label, ContentPresenter, etc.
Можно извратиться, но это будет не один и тот же элемент для кода и XMLа
<local:Toolbox ItemSize="80, 60"> <ItemsControl.Items> <ContentControl Content="{StaticResource Имя}"> </ContentControl>