forked from amkovkov/GranuSightSoftware2
feat: AmineContentView menu disabling
when scrolling and when SeparatorCalibrationView menu opened
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:GSS2.ViewModels"
|
||||
xmlns:core="using:GSS2.UI.Core"
|
||||
xmlns:avalonia_converters="using:Avalonia.Data.Converters"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
x:DataType="vm:AmineContentViewModel">
|
||||
|
||||
@@ -44,6 +45,14 @@
|
||||
|
||||
<!-- Меню -->
|
||||
<ScrollViewer Grid.Row="0" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Disabled">
|
||||
|
||||
<ScrollViewer.IsEnabled>
|
||||
<MultiBinding Converter="{x:Static BoolConverters.And}">
|
||||
<Binding Converter="{x:Static BoolConverters.Not}" Path="IsScrolling" />
|
||||
<Binding Converter="{x:Static BoolConverters.Not}" Path="SeparatorCalibration.MenuOpened" />
|
||||
</MultiBinding>
|
||||
</ScrollViewer.IsEnabled>
|
||||
|
||||
<Grid ColumnSpacing="5">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -95,7 +104,7 @@
|
||||
</ScrollViewer>
|
||||
|
||||
<!-- Основной контент -->
|
||||
<core:SectionPanel Grid.Row="1" ClipToBounds="True" CurrentIndex="{Binding CurrentIndex}" Orientation="Horizontal">
|
||||
<core:SectionPanel Grid.Row="1" ClipToBounds="True" CurrentIndex="{Binding CurrentIndex}" Orientation="Horizontal" IsScrolling="{Binding IsScrolling}">
|
||||
<ContentControl Content="{Binding Start}"/> <!-- Начальная страница -->
|
||||
<ContentControl Content="{Binding Analysis}"/> <!-- Анализ -->
|
||||
<ContentControl Content="{Binding Results}"/> <!-- Результаты -->
|
||||
|
||||
Reference in New Issue
Block a user