@@ -37,31 +37,6 @@ public partial class RangeSelector : Control
3737 private const double DefaultStepFrequency = 1 ;
3838 private static readonly TimeSpan TimeToHideToolTipOnKeyUp = TimeSpan . FromSeconds ( 1 ) ;
3939
40- /// <summary>
41- /// Identifies the Minimum dependency property.
42- /// </summary>
43- public static readonly DependencyProperty MinimumProperty = DependencyProperty . Register ( nameof ( Minimum ) , typeof ( double ) , typeof ( RangeSelector ) , new PropertyMetadata ( DefaultMinimum , MinimumChangedCallback ) ) ;
44-
45- /// <summary>
46- /// Identifies the Maximum dependency property.
47- /// </summary>
48- public static readonly DependencyProperty MaximumProperty = DependencyProperty . Register ( nameof ( Maximum ) , typeof ( double ) , typeof ( RangeSelector ) , new PropertyMetadata ( DefaultMaximum , MaximumChangedCallback ) ) ;
49-
50- /// <summary>
51- /// Identifies the RangeMin dependency property.
52- /// </summary>
53- public static readonly DependencyProperty RangeMinProperty = DependencyProperty . Register ( nameof ( RangeMin ) , typeof ( double ) , typeof ( RangeSelector ) , new PropertyMetadata ( DefaultMinimum , RangeMinChangedCallback ) ) ;
54-
55- /// <summary>
56- /// Identifies the RangeMax dependency property.
57- /// </summary>
58- public static readonly DependencyProperty RangeMaxProperty = DependencyProperty . Register ( nameof ( RangeMax ) , typeof ( double ) , typeof ( RangeSelector ) , new PropertyMetadata ( DefaultMaximum , RangeMaxChangedCallback ) ) ;
59-
60- /// <summary>
61- /// Identifies the StepFrequency dependency property.
62- /// </summary>
63- public static readonly DependencyProperty StepFrequencyProperty = DependencyProperty . Register ( nameof ( StepFrequency ) , typeof ( double ) , typeof ( RangeSelector ) , new PropertyMetadata ( DefaultStepFrequency ) ) ;
64-
6540 private readonly DispatcherQueueTimer keyDebounceTimer = DispatcherQueue . GetForCurrentThread ( ) . CreateTimer ( ) ;
6641
6742 private Border _outOfRangeContentContainer ;
@@ -411,25 +386,6 @@ private void VerifyValues()
411386 }
412387 }
413388
414- /// <summary>
415- /// Gets or sets the minimum value of the range.
416- /// </summary>
417- /// <value>
418- /// The minimum.
419- /// </value>
420- public double Minimum
421- {
422- get
423- {
424- return ( double ) GetValue ( MinimumProperty ) ;
425- }
426-
427- set
428- {
429- SetValue ( MinimumProperty , value ) ;
430- }
431- }
432-
433389 private static void MinimumChangedCallback ( DependencyObject d , DependencyPropertyChangedEventArgs e )
434390 {
435391 var rangeSelector = d as RangeSelector ;
@@ -463,25 +419,6 @@ private static void MinimumChangedCallback(DependencyObject d, DependencyPropert
463419 }
464420 }
465421
466- /// <summary>
467- /// Gets or sets the maximum value of the range.
468- /// </summary>
469- /// <value>
470- /// The maximum.
471- /// </value>
472- public double Maximum
473- {
474- get
475- {
476- return ( double ) GetValue ( MaximumProperty ) ;
477- }
478-
479- set
480- {
481- SetValue ( MaximumProperty , value ) ;
482- }
483- }
484-
485422 private static void MaximumChangedCallback ( DependencyObject d , DependencyPropertyChangedEventArgs e )
486423 {
487424 var rangeSelector = d as RangeSelector ;
@@ -515,25 +452,6 @@ private static void MaximumChangedCallback(DependencyObject d, DependencyPropert
515452 }
516453 }
517454
518- /// <summary>
519- /// Gets or sets the current lower limit value of the range.
520- /// </summary>
521- /// <value>
522- /// The current lower limit.
523- /// </value>
524- public double RangeMin
525- {
526- get
527- {
528- return ( double ) GetValue ( RangeMinProperty ) ;
529- }
530-
531- set
532- {
533- SetValue ( RangeMinProperty , value ) ;
534- }
535- }
536-
537455 private static void RangeMinChangedCallback ( DependencyObject d , DependencyPropertyChangedEventArgs e )
538456 {
539457 var rangeSelector = d as RangeSelector ;
@@ -576,25 +494,6 @@ private static void RangeMinChangedCallback(DependencyObject d, DependencyProper
576494 rangeSelector . SyncThumbs ( ) ;
577495 }
578496
579- /// <summary>
580- /// Gets or sets the current upper limit value of the range.
581- /// </summary>
582- /// <value>
583- /// The current upper limit.
584- /// </value>
585- public double RangeMax
586- {
587- get
588- {
589- return ( double ) GetValue ( RangeMaxProperty ) ;
590- }
591-
592- set
593- {
594- SetValue ( RangeMaxProperty , value ) ;
595- }
596- }
597-
598497 private static void RangeMaxChangedCallback ( DependencyObject d , DependencyPropertyChangedEventArgs e )
599498 {
600499 var rangeSelector = d as RangeSelector ;
@@ -645,25 +544,6 @@ private static void UpdateToolTipText(RangeSelector rangeSelector, TextBlock too
645544 }
646545 }
647546
648- /// <summary>
649- /// Gets or sets the value part of a value range that steps should be created for.
650- /// </summary>
651- /// <value>
652- /// The value part of a value range that steps should be created for.
653- /// </value>
654- public double StepFrequency
655- {
656- get
657- {
658- return ( double ) GetValue ( StepFrequencyProperty ) ;
659- }
660-
661- set
662- {
663- SetValue ( StepFrequencyProperty , value ) ;
664- }
665- }
666-
667547 private void RangeMinToStepFrequency ( )
668548 {
669549 RangeMin = MoveToStepFrequency ( RangeMin ) ;
0 commit comments