/// <summary>
        /// To dispose objects.
        /// </summary>
        public void Dispose()
        {
            this.firstMarker.ValueChanged   -= this.firstMarker_ValueChanged;
            this.firstMarker.ValueChanging  -= this.firstMarker_ValueChanging;
            this.secondMarker.ValueChanged  -= this.secondMarker_ValueChanged;
            this.secondMarker.ValueChanging -= this.secondMarker_ValueChanging;

#if WinUI_Desktop
            this.gauge.Dispose();
#endif
            this.DataContext = this.viewModel = null;
        }
 public RadialRangeSlider()
 {
     this.InitializeComponent();
     this.viewModel = this.DataContext as RadialRangeSliderViewModel;
 }