Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
        /// <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();
        }