コード例 #1
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            m_spectrumDisplay      = GetTemplateChild(SpectrumDisplayName) as Rectangle;
            m_Thumb                = GetTemplateChild("Thumb") as ColorThumb;
            m_IncreaseRepeatButton = GetTemplateChild("PART_IncreaseButton") as RepeatButton;
            m_DecreaseRepeatButton = GetTemplateChild("PART_DecreaseButton") as RepeatButton;

            updateColorSpectrum();
            OnValueChanged(Double.NaN, Value);
        }
コード例 #2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            m_spectrumDisplay = GetTemplateChild(SpectrumDisplayName) as Rectangle;
            m_Thumb = GetTemplateChild("Thumb") as ColorThumb;
            m_IncreaseRepeatButton = GetTemplateChild("PART_IncreaseButton") as RepeatButton;
            m_DecreaseRepeatButton = GetTemplateChild("PART_DecreaseButton") as RepeatButton;

            updateColorSpectrum();
            OnValueChanged(Double.NaN, Value);
        }