I need to create 40 text fields with labels, can I somehow do without copy-paste, and just create a template? I read about it on the Internet, but did not understand until the end. Each bundle (TextBox and Label) is wrapped in a StackPanel:
<StackPanel MinWidth="180" HorizontalAlignment="Stretch" Margin="5"> <Label Content="{DynamicResource "Название метки"}" Margin="0" Padding="0"></Label> <TextBox Padding="5" Text="{Binding "Здесь название свойства"}" Height="27" ></TextBox> </StackPanel>