protected override void OnApplyTemplate()
        {
            _templateSettings = new TreeViewItemTemplateSettings();
            TreeViewItemExtension.SetTemplateSettings(AttachedFrameworkElement, _templateSettings);

            _contentPresenterBorder = GetTemplateChild <Border>("ContentPresenterBorder");
            SetLeftIndentLengthSettings();
        }
Esempio n. 2
0
 internal static void SetTemplateSettings(TreeViewItem item, TreeViewItemTemplateSettings templateSettings)
 {
     item.SetValue(TemplateSettingsProperty, templateSettings);
 }