/// <summary> /// Called when <see cref="M:System.Windows.FrameworkElement.ApplyTemplate" /> is called. /// </summary> public override void OnApplyTemplate() { base.OnApplyTemplate(); this.colorPickerPanel = this.GetTemplateChild(PartColorPickerPanel) as ColorPickerPanel; if (this.colorPickerPanel != null) { this.colorPickerPanel.PredefinedColorPanelSelectionChangedEvent += this.OnPredefinedColorPanelSelectionChanged; } }
/// <summary> /// Called when <see cref="M:System.Windows.FrameworkElement.ApplyTemplate"/> is called. /// </summary> public override void OnApplyTemplate() { base.OnApplyTemplate(); this.colorPickerPanel = this.GetTemplateChild(PartColorPickerPanel) as ColorPickerPanel; }