forked from amkovkov/GranuSightSoftware2
fix: typo
This commit is contained in:
@@ -30,7 +30,7 @@ public partial class SeparatorCalibrationViewModel : ViewModelBase
|
||||
[ObservableProperty] public partial SeparatorRecord? SelectedRecord { get; set; }
|
||||
[ObservableProperty] public partial SeparatorRecord EditingRecord { get; set; }
|
||||
|
||||
[ObservableProperty] public partial int MainSectionsCurrentIndex { get; set; } = 0;
|
||||
[ObservableProperty] public partial int MainSectionCurrentIndex { get; set; } = 0;
|
||||
[ObservableProperty] public partial bool MainSectionCanScrollBackward { get; set; } = false;
|
||||
[ObservableProperty] public partial bool MainSectionCanScrollForward { get; set; } = true;
|
||||
[ObservableProperty] public partial bool MainSectionIsScrolling { get; set; } = true;
|
||||
@@ -293,7 +293,7 @@ public partial class SeparatorCalibrationViewModel : ViewModelBase
|
||||
}
|
||||
|
||||
// Команда изменения основной секции (информация <-> изображения)
|
||||
[RelayCommand] private void SwitchMainSection() => MainSectionsCurrentIndex = MainSectionsCurrentIndex == 0 ? 1 : 0;
|
||||
[RelayCommand] private void SwitchMainSection() => MainSectionCurrentIndex = MainSectionCurrentIndex == 0 ? 1 : 0;
|
||||
|
||||
// Команда навигации по изображениям
|
||||
[RelayCommand] private void ImagesSectionPrevious() => ImagesSectionCurrentIndex--;
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
CanScrollBackward="{Binding MainSectionCanScrollBackward}"
|
||||
CanScrollForward="{Binding MainSectionCanScrollForward}"
|
||||
ClipToBounds="True"
|
||||
CurrentIndex="{Binding MainSectionsCurrentIndex}"
|
||||
CurrentIndex="{Binding MainSectionCurrentIndex}"
|
||||
IsScrolling="{Binding MainSectionIsScrolling}"
|
||||
Orientation="Vertical">
|
||||
|
||||
@@ -350,7 +350,7 @@
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding SwitchMainSectionCommand}"
|
||||
Content="К информации"
|
||||
IsVisible="{Binding MainSectionsCurrentIndex, Converter={StaticResource EqualsConverter}, ConverterParameter=1}">
|
||||
IsVisible="{Binding MainSectionCurrentIndex, Converter={StaticResource EqualsConverter}, ConverterParameter=1}">
|
||||
|
||||
<TextBlock Text="К информации"/>
|
||||
|
||||
@@ -370,7 +370,7 @@
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding SwitchMainSectionCommand}"
|
||||
Content="К изображениям"
|
||||
IsVisible="{Binding MainSectionsCurrentIndex, Converter={StaticResource EqualsConverter}, ConverterParameter=0}">
|
||||
IsVisible="{Binding MainSectionCurrentIndex, Converter={StaticResource EqualsConverter}, ConverterParameter=0}">
|
||||
|
||||
<TextBlock Text="К изображениям"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user