|
|
|
|
@ -164,8 +164,8 @@
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
<RowDefinition Height="50"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel DockPanel.Dock="Top">
|
|
|
|
|
<Grid Margin="15">
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<Grid Margin="15 15 15 10">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
@ -173,7 +173,7 @@
|
|
|
|
|
<TextBlock Text="그래프" VerticalAlignment="Center"
|
|
|
|
|
FontSize="20" FontFamily="{StaticResource SCDream4}" Foreground="White"/>
|
|
|
|
|
|
|
|
|
|
<ComboBox Margin="15 0 0 0" Height="50" Grid.Column="1"
|
|
|
|
|
<ComboBox Margin="15 0 0 0" Height="40" Grid.Column="1"
|
|
|
|
|
Style="{StaticResource ComboBoxStyle}"
|
|
|
|
|
ItemsSource="{Binding GraphTypes}"
|
|
|
|
|
SelectedIndex="{Binding SelectedGraphIndex, Mode=TwoWay}"
|
|
|
|
|
@ -187,14 +187,14 @@
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBlock Text="X축" VerticalAlignment="Center"
|
|
|
|
|
FontSize="20" FontFamily="{StaticResource SCDream4}" Foreground="White"/>
|
|
|
|
|
<ComboBox Margin="15 0 0 0" Height="50" Grid.Column="1"
|
|
|
|
|
<ComboBox Margin="15 0 0 0" Height="40" Grid.Column="1"
|
|
|
|
|
Style="{StaticResource ComboBoxStyle}"
|
|
|
|
|
ItemsSource="{Binding XFieldCandidates}"
|
|
|
|
|
SelectedItem="{Binding SelectedXField}"
|
|
|
|
|
DisplayMemberPath="Display"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<Grid Margin="15 5">
|
|
|
|
|
<Grid Margin="15 10 15 0">
|
|
|
|
|
<Grid.Resources>
|
|
|
|
|
<Style TargetType="FrameworkElement">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
|
|
|
@ -210,6 +210,27 @@
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="VisibleWhenTankNLine" TargetType="FrameworkElement" BasedOn="{StaticResource {x:Type FrameworkElement}}">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding IsTankAndLine}" Value="True">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="VisibleWhenLine" TargetType="FrameworkElement" BasedOn="{StaticResource {x:Type FrameworkElement}}">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding SelectedGraphType}" Value="LINE">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="VisibleWhenStep" TargetType="FrameworkElement" BasedOn="{StaticResource {x:Type FrameworkElement}}">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding SelectedGraphType}" Value="STEP">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="VisibleWhenScatter" TargetType="FrameworkElement" BasedOn="{StaticResource {x:Type FrameworkElement}}">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding SelectedGraphType}" Value="SCATTER">
|
|
|
|
|
@ -227,36 +248,64 @@
|
|
|
|
|
</Grid.Resources>
|
|
|
|
|
|
|
|
|
|
<!-- LINE/STEP: 다중 선택 -->
|
|
|
|
|
<Grid Style="{StaticResource VisibleWhenTrue}">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Text="Y축 (복수 선택)" VerticalAlignment="Center"
|
|
|
|
|
FontSize="20" FontFamily="{StaticResource SCDream4}" Foreground="White"/>
|
|
|
|
|
<!-- SelectedItems 바인딩을 위한 간단 Behavior는 아래 3) 참고 -->
|
|
|
|
|
<Border Grid.Row="1" CornerRadius="10" Background="White">
|
|
|
|
|
<ListBox ItemsSource="{Binding YFieldCandidates}"
|
|
|
|
|
DisplayMemberPath="Display"
|
|
|
|
|
SelectionMode="Extended"
|
|
|
|
|
helper:MultiSelectBehavior.SelectedItems="{Binding SelectedYFields, Mode=OneWay}"
|
|
|
|
|
Height="Auto" Background="White"
|
|
|
|
|
FontSize="16" FontWeight="Bold"
|
|
|
|
|
Style="{StaticResource MaterialDesignFilterChipListBox}"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<StackPanel Style="{StaticResource VisibleWhenTrue}">
|
|
|
|
|
<StackPanel Style="{StaticResource VisibleWhenTankNLine}">
|
|
|
|
|
<TextBlock Text="수조 (복수 선택)" VerticalAlignment="Center"
|
|
|
|
|
FontSize="20" FontFamily="{StaticResource SCDream4}" Foreground="White"/>
|
|
|
|
|
|
|
|
|
|
<Border CornerRadius="10" Background="White" Margin="0 5 0 10">
|
|
|
|
|
<ListBox ItemsSource="{Binding TankGroups}"
|
|
|
|
|
DisplayMemberPath="Key"
|
|
|
|
|
SelectionMode="Extended"
|
|
|
|
|
helper:MultiSelectBehavior.SelectedDictionary="{Binding SelectedWaterTanks, Mode=OneWay}"
|
|
|
|
|
helper:MultiSelectBehavior.KeyPath="Key"
|
|
|
|
|
helper:MultiSelectBehavior.ValuePath="Value"
|
|
|
|
|
Height="Auto" Background="White"
|
|
|
|
|
FontSize="16" FontWeight="Bold"
|
|
|
|
|
Style="{StaticResource MaterialDesignFilterChipListBox}"/>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<Grid Style="{StaticResource VisibleWhenLine}">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBlock Text="Y축" VerticalAlignment="Center" Style="{StaticResource VisibleWhenLine}"
|
|
|
|
|
FontSize="20" FontFamily="{StaticResource SCDream4}" Foreground="White"/>
|
|
|
|
|
<ComboBox ItemsSource="{Binding YFieldCandidates}"
|
|
|
|
|
SelectedItem="{Binding SelectedYField, Mode=TwoWay}"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
DisplayMemberPath="Display" Margin="15 0 0 0"
|
|
|
|
|
Height="40" Style="{StaticResource ComboBoxStyle}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<StackPanel Style="{StaticResource VisibleWhenStep}">
|
|
|
|
|
<TextBlock Text="Y축 (복수 선택)" VerticalAlignment="Center"
|
|
|
|
|
FontSize="20" FontFamily="{StaticResource SCDream4}" Foreground="White"/>
|
|
|
|
|
<!-- SelectedItems 바인딩을 위한 간단 Behavior는 아래 3) 참고 -->
|
|
|
|
|
<Border CornerRadius="10" Background="White" Margin="0 5">
|
|
|
|
|
<ListBox ItemsSource="{Binding YFieldCandidates}"
|
|
|
|
|
DisplayMemberPath="Display"
|
|
|
|
|
SelectionMode="Extended"
|
|
|
|
|
helper:MultiSelectBehavior.SelectedItems="{Binding SelectedYFields, Mode=OneWay}"
|
|
|
|
|
Height="Auto" Background="White"
|
|
|
|
|
FontSize="16" FontWeight="Bold"
|
|
|
|
|
Style="{StaticResource MaterialDesignFilterChipListBox}"/>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<!-- 옵션 -->
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 15 0 0" Grid.Row="2">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 15 0 0" Grid.Row="4">
|
|
|
|
|
<CheckBox Content="마커 표시" IsChecked="{Binding ShowMarkers}" Margin="0 0 15 0"
|
|
|
|
|
FontSize="20" FontFamily="{StaticResource SCDream4}" Foreground="White"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}"/>
|
|
|
|
|
<CheckBox Content="스무딩" IsChecked="{Binding UseSmoothing}"
|
|
|
|
|
<!--<CheckBox Content="스무딩" IsChecked="{Binding UseSmoothing}"
|
|
|
|
|
FontSize="20" FontFamily="{StaticResource SCDream4}" Foreground="White"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}"/>
|
|
|
|
|
Style="{StaticResource MaterialDesignUserForegroundCheckBox}"/>-->
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<!-- SCATTER: 단일 Y + 옵션 -->
|
|
|
|
|
<Grid Style="{StaticResource VisibleWhenScatter}">
|
|
|
|
|
@ -347,7 +396,9 @@
|
|
|
|
|
|
|
|
|
|
<Border Grid.Column="1" Margin="0 20 20 20"
|
|
|
|
|
Background="#384659" BorderBrush="#404F63" BorderThickness="1" CornerRadius="10">
|
|
|
|
|
|
|
|
|
|
<control:GraphControl x:Name="graphControl"
|
|
|
|
|
Margin="10" DataContext="{Binding GraphControlVM}"
|
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|