Я не являюсь источником привязки или как выглядит диаграмма LabelTemplate (конвертер). Лучшее, что я могу придумать, что много информации является следующее:
public class LabelTemplate : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
//...
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
//...
}
}
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
LabelTemplate labelTemplateConverter = new LabelTemplate();
Binding binding = new Binding("Item.Items");
binding.Converter = labelTemplateConverter;
txtBlock.SetBinding(TextBlock.TextProperty, binding);
}
}
и Ваш TextBlock имеет имя txtBlock
Я надеюсь, что это помогает.