Esempio n. 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);
            }
        }
Esempio n. 2
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);
     }
 }
Esempio n. 3
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;
 }
Esempio n. 4
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;
 }