Esempio n. 1
0
        public SliderShowValues()
        {
            InitializeComponent();

            // Value converter
            _valueConverter = this.Resources["logConverter"] as MultiplierValueConverter;
            if (_valueConverter == null)
            {
                throw new ApplicationException("Didn't find the value converter");
            }
            _valueConverter.Parent = this;

            // Don't let the textboxes get wider than half the control's width
            SetTextBoxMaxWidth();
        }
        public SliderShowValues()
        {
            InitializeComponent();

            // Value converter
            _valueConverter = this.Resources["logConverter"] as MultiplierValueConverter;
            if (_valueConverter == null)
            {
                throw new ApplicationException("Didn't find the value converter");
            }
            _valueConverter.Parent = this;

            // Don't let the textboxes get wider than half the control's width
            SetTextBoxMaxWidth();
        }