/// <summary> /// Raised when template applied /// </summary> public override void OnApplyTemplate() { base.OnApplyTemplate(); _inputs = GetTemplateChild("PART_Inputs") as ItemsControl; _outputs = GetTemplateChild("PART_Outputs") as ItemsControl; ParentSchemeControl = FindAncestor.FindAncestorOfType(this, typeof(SchemeControl)) as SchemeControl; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); _hotspotElement = GetTemplateChild("PART_Hotspot") as FrameworkElement; ParentSchemeControl = FindAncestor.FindAncestorOfType(this, typeof(SchemeControl)) as SchemeControl; }