Exemple #1
0
        /// <summary>
        /// When overridden in a derived class, is invoked whenever application code or internal processes call <see
        /// cref="M:System.Windows.FrameworkElement.ApplyTemplate" />.
        /// </summary>
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            this.hsvControl = this.GetTemplateChild(PartHsv) as HsvControl;
            var predefinedColorPanel = this.GetTemplateChild(PartPredefinedColorPanel) as StackPanel;

            if (predefinedColorPanel != null)
            {
                predefinedColorPanel.AddHandler(Selector.SelectionChangedEvent, (SelectionChangedEventHandler)this.OnPredefinedColorPanelSelectionChanged, true);
            }
        }
 /// <summary>
 /// When overridden in a derived class, is invoked whenever application code or internal processes call <see
 /// cref="M:System.Windows.FrameworkElement.ApplyTemplate" />.
 /// </summary>
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     this.hsvControl = this.GetTemplateChild(PartHsv) as HsvControl;
     var predefinedColorPanel = this.GetTemplateChild(PartPredefinedColorPanel) as StackPanel;
     if (predefinedColorPanel != null)
     {
         predefinedColorPanel.AddHandler(Selector.SelectionChangedEvent, (SelectionChangedEventHandler)this.OnPredefinedColorPanelSelectionChanged, true);
     }
 }
 /// <summary>
 /// When overridden in a derived class, is invoked whenever application code or internal processes call <see cref="M:System.Windows.FrameworkElement.ApplyTemplate"/>.
 /// </summary>
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     this.hsvControl = this.GetTemplateChild(PartHsv) as HsvControl;
 }
 /// <summary>
 /// When overridden in a derived class, is invoked whenever application code or internal processes call <see cref="M:System.Windows.FrameworkElement.ApplyTemplate"/>.
 /// </summary>
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     this.hsvControl = this.GetTemplateChild(PartHsv) as HsvControl;
 }