Deutsch
Germany.ruФорумы → Архив Досок→ Программирование

WPF - требуется ИИ, можно с детьми

28.12.17 23:56
Re: WPF - требуется ИИ, можно с детьми
 
AlexNek патриот
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>
 

Перейти на