public NumericEditor()
 {
     _slider = new NumericProperties()
     {
         Visibility = Visibility.Collapsed
     };
     _slider.SetBinding(NumericProperties.SliderStyleProperty, new Binding("SliderStyle")
     {
         Source = this
     });
     _slider.SetBinding(NumericProperties.CheckboxStyleProperty, new Binding("CheckboxStyle")
     {
         Source = this
     });
     _numeric = new C1NumericBox()
     {
         Visibility = Visibility.Collapsed
     };
     _numeric.SetBinding(StyleProperty, new Binding("NumericStyle")
     {
         Source = this
     });
     this.Children.Add(_slider);
     this.Children.Add(_numeric);
 }
Esempio n. 2
0
 public NumericEditor()
 {
     _slider = new NumericProperties() { Visibility = Visibility.Collapsed };
     _slider.SetBinding(NumericProperties.SliderStyleProperty, new Binding("SliderStyle") { Source = this });
     _slider.SetBinding(NumericProperties.CheckboxStyleProperty, new Binding("CheckboxStyle") { Source = this });
     _numeric = new C1NumericBox() { Visibility = Visibility.Collapsed };
     _numeric.SetBinding(StyleProperty, new Binding("NumericStyle") { Source = this });
     this.Children.Add(_slider);
     this.Children.Add(_numeric);
 }