protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
        {
            base.OnApplyTemplate(e);

            LinesRenderer       = e.NameScope.Find <LinesRenderer>("linesRenderer");
            spacer              = e.NameScope.Find <Control>("spacer");
            expander            = e.NameScope.Find <ToggleButton>("expander");
            icon                = e.NameScope.Find <ContentPresenter>("icon");
            textEditorContainer = e.NameScope.Find <Border>("textEditorContainer");
            checkBoxContainer   = e.NameScope.Find <Border>("checkBoxContainer");
            checkBoxContainer   = e.NameScope.Find <Border>("checkBoxContainer");
            checkBox            = e.NameScope.Find <CheckBox>("checkBox");
            textContainer       = e.NameScope.Find <Border>("textContainer");
            textContent         = e.NameScope.Find <ContentPresenter>("textContent");

            UpdateTemplate();
        }
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     LinesRenderer = Template.FindName("linesRenderer", this) as LinesRenderer;
     UpdateTemplate();
 }
Example #3
0
		public override void OnApplyTemplate()
		{
			base.OnApplyTemplate();
			LinesRenderer = Template.FindName("linesRenderer", this) as LinesRenderer;
			UpdateTemplate();
		}