diff --git a/Correlator/Correlator.csproj b/Correlator/Correlator.csproj index 1bbcfe0..dc91f84 100644 --- a/Correlator/Correlator.csproj +++ b/Correlator/Correlator.csproj @@ -234,6 +234,7 @@ + diff --git a/Correlator/Correlator.csproj b/Correlator/Correlator.csproj index 1bbcfe0..dc91f84 100644 --- a/Correlator/Correlator.csproj +++ b/Correlator/Correlator.csproj @@ -234,6 +234,7 @@ + diff --git a/Correlator/Dialog/CheckResponseDialog.xaml b/Correlator/Dialog/CheckResponseDialog.xaml index 2c66627..add4074 100644 --- a/Correlator/Dialog/CheckResponseDialog.xaml +++ b/Correlator/Dialog/CheckResponseDialog.xaml @@ -2,7 +2,7 @@ x:Class="Correlator.Dialog.CheckResponseDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:converter="clr-namespace:Correlator.Converter" + xmlns:cvt="clr-namespace:Correlator.Converter" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:hc="https://handyorg.github.io/handycontrol" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -24,7 +24,7 @@ - + - - - - + + + + @@ -182,7 +170,7 @@ VerticalAlignment="Top" hc:BorderElement.CornerRadius="17.5" Content="下一步" - IsEnabled="{Binding ElementName=RedSensorStepBar, Path=StepIndex, Converter={StaticResource StepButtonStateConverter}}" + IsEnabled="{Binding StepIndex, ElementName=RedSensorStepBar, Converter={StaticResource StateConverter}}" Style="{StaticResource FunctionButtonStyle}" /> @@ -204,22 +192,10 @@ - - - - + + + + diff --git a/Correlator/Correlator.csproj b/Correlator/Correlator.csproj index 1bbcfe0..dc91f84 100644 --- a/Correlator/Correlator.csproj +++ b/Correlator/Correlator.csproj @@ -234,6 +234,7 @@ + diff --git a/Correlator/Dialog/CheckResponseDialog.xaml b/Correlator/Dialog/CheckResponseDialog.xaml index 2c66627..add4074 100644 --- a/Correlator/Dialog/CheckResponseDialog.xaml +++ b/Correlator/Dialog/CheckResponseDialog.xaml @@ -2,7 +2,7 @@ x:Class="Correlator.Dialog.CheckResponseDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:converter="clr-namespace:Correlator.Converter" + xmlns:cvt="clr-namespace:Correlator.Converter" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:hc="https://handyorg.github.io/handycontrol" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -24,7 +24,7 @@ - + - - - - + + + + @@ -182,7 +170,7 @@ VerticalAlignment="Top" hc:BorderElement.CornerRadius="17.5" Content="下一步" - IsEnabled="{Binding ElementName=RedSensorStepBar, Path=StepIndex, Converter={StaticResource StepButtonStateConverter}}" + IsEnabled="{Binding StepIndex, ElementName=RedSensorStepBar, Converter={StaticResource StateConverter}}" Style="{StaticResource FunctionButtonStyle}" /> @@ -204,22 +192,10 @@ - - - - + + + + diff --git a/Correlator/Dialog/ImportResponseDialog.xaml b/Correlator/Dialog/ImportResponseDialog.xaml index d7dca60..99e7bf1 100644 --- a/Correlator/Dialog/ImportResponseDialog.xaml +++ b/Correlator/Dialog/ImportResponseDialog.xaml @@ -2,13 +2,14 @@ x:Class="Correlator.Dialog.ImportResponseDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:b="http://schemas.microsoft.com/xaml/behaviors" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:hc="https://handyorg.github.io/handycontrol" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:prism="http://prismlibrary.com/" xmlns:vm="clr-namespace:Correlator.ViewModels" Width="650" - Height="450" + Height="600" d:DataContext="{d:DesignInstance Type=vm:ImportResponseDialogViewModel}" mc:Ignorable="d"> @@ -39,7 +40,7 @@ - + @@ -69,103 +70,184 @@ - + + + + + + + + + + + + + - - - - + + + + + - + + + + + - + - + - - - - - + - + + + + + -