Difference between management template and data template in wpf

Can someone clarify the difference between ControlTemplateand DataTemplatein wpf?

What should be used with custom controls? Like for example a StackPanel, which perhaps also has imagea TextBox?

In some cases, it seems confusing when you define a custom control using the Content property.

It would be great if an example was given of how each can be used in different scenarios.

+3
source share
1 answer

A ControlTemplate . , , , , . WPF " "; .

A DataTemplate , , ( - ). a DataTemplate, Customer , .

+8

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


All Articles