コード例 #1
0
        public void SetDefaultScale(double scale)
        {
            ((RLVScaleSelectionVM)ViewModel).DefaultScale = scale;
            //((RLVScaleSelectionVM)ViewModel).SliderLabelText = $"Percent of Improvement: {((RLVScaleSelectionVM)ViewModel).DefaultScale}%";
            ((RLVScaleSelectionVM)ViewModel).SliderLabelText = $"{((RLVScaleSelectionVM)ViewModel).DefaultScale}%";

            double percentage = ((RLVScaleSelectionVM)ViewModel).DefaultScale;

            ScaleChangedEvent?.Invoke(percentage);
        }
コード例 #2
0
        private void scaleSlider_PreviewMouseUp_1(object sender, MouseButtonEventArgs e)
        {
            double percentage = ((RLVScaleSelectionVM)ViewModel).DefaultScale;

            ScaleChangedEvent?.Invoke(percentage);
        }