/// <summary> /// Apply a template to the RepeatButton. /// </summary> public override void OnApplyTemplate() { // get the parts ElementRoot = GetTemplateChild(ElementRootName) as FrameworkElement; ElementFocusVisual = GetTemplateChild(ElementFocusVisualName) as FrameworkElement; Interaction.OnApplyTemplateBase(); }
/// <summary> /// Apply a template to the thumb. /// </summary> public override void OnApplyTemplate() { base.OnApplyTemplate(); // Get the parts ElementRoot = GetTemplateChild(ElementRootName) as FrameworkElement; // Get the states Interaction.OnApplyTemplateBase(); }