|
|
|
|
@ -9,59 +9,93 @@
|
|
|
|
|
xmlns:vm="clr-namespace:SmartAquaViewer.ViewModel"
|
|
|
|
|
xmlns:helper="clr-namespace:SmartAquaViewer.Helper"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Title="MainWindow" Height="1080" Width="1920" WindowStartupLocation="CenterScreen">
|
|
|
|
|
Title="MainWindow" Height="1080" Width="1920" WindowStartupLocation="CenterScreen" Style="{StaticResource WindowChromeStyle}">
|
|
|
|
|
|
|
|
|
|
<Window.DataContext>
|
|
|
|
|
<vm:MainViewModel/>
|
|
|
|
|
</Window.DataContext>
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.Background>
|
|
|
|
|
<ImageBrush ImageSource="./Resources/Images/background.png"></ImageBrush>
|
|
|
|
|
</Grid.Background>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="270"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
|
<RowDefinition Height="100"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid Grid.RowSpan="2"> <!--파일 리스트-->
|
|
|
|
|
<view:FileListView x:Name="fileListView"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Column="1"> <!--탭-->
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
<RadioButton x:Name="rdbtnMonitoing" GroupName="contentSwap" Content="모니터링" Tag="monitoring"
|
|
|
|
|
Style="{StaticResource ImageRadioButtonStyle}" IsChecked="True" FontSize="30"
|
|
|
|
|
helper:RadioButtonHelper.UnPressedImage="/Resources/Images/tab_bg.png"
|
|
|
|
|
helper:RadioButtonHelper.PressedImage="/Resources/Images/tab_bg_off.png"
|
|
|
|
|
Command="{Binding SwapViewCommand}"
|
|
|
|
|
CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/>
|
|
|
|
|
<RadioButton x:Name="rdbtnEnergy" GroupName="contentSwap" Content="에너지" Tag="energy"
|
|
|
|
|
Style="{StaticResource ImageRadioButtonStyle}" Grid.Column="1" FontSize="30"
|
|
|
|
|
helper:RadioButtonHelper.UnPressedImage="/Resources/Images/tab_bg.png"
|
|
|
|
|
helper:RadioButtonHelper.PressedImage="/Resources/Images/tab_bg_off.png"
|
|
|
|
|
Command="{Binding SwapViewCommand}"
|
|
|
|
|
CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/>
|
|
|
|
|
<RadioButton x:Name="rdBtnGreenHouseGas" GroupName="contentSwap" Content="온실가스" Tag="greenHouseGas"
|
|
|
|
|
Style="{StaticResource ImageRadioButtonStyle}" Grid.Column="2" FontSize="30"
|
|
|
|
|
helper:RadioButtonHelper.UnPressedImage="/Resources/Images/tab_bg.png"
|
|
|
|
|
helper:RadioButtonHelper.PressedImage="/Resources/Images/tab_bg_off.png"
|
|
|
|
|
Command="{Binding SwapViewCommand}"
|
|
|
|
|
CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/>
|
|
|
|
|
<RadioButton x:Name="rdbtnCCTV" GroupName="contentSwap" Content="CCTV" Tag="cctv"
|
|
|
|
|
Style="{StaticResource ImageRadioButtonStyle}" Grid.Column="3" FontSize="30"
|
|
|
|
|
helper:RadioButtonHelper.UnPressedImage="/Resources/Images/tab_bg.png"
|
|
|
|
|
helper:RadioButtonHelper.PressedImage="/Resources/Images/tab_bg_off.png"
|
|
|
|
|
Command="{Binding SwapViewCommand}"
|
|
|
|
|
CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Row="1" Grid.Column="1"> <!--기능 화면-->
|
|
|
|
|
<Border Grid.ColumnSpan="2">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.Background>
|
|
|
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" Opacity="0.61">
|
|
|
|
|
<GradientStop Color="#394861" Offset="0.0"/>
|
|
|
|
|
<GradientStop Color="#232839" Offset="1"/>
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
</Grid.Background>
|
|
|
|
|
<TextBlock x:Name="appTitle" Text="{Binding AppTitle}" FontFamily="{StaticResource SCDream6}"
|
|
|
|
|
Margin="20 0 0 0" Foreground="White"
|
|
|
|
|
VerticalAlignment="Center"/>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" WindowChrome.IsHitTestVisibleInChrome="True">
|
|
|
|
|
<Button Style="{StaticResource WindowChromeButtonStyle}" x:Name="windowMin" Content="━" Click="WindowMin_Click" FontSize="14" FontWeight="Bold"></Button>
|
|
|
|
|
<Button Style="{StaticResource WindowChromeButtonStyle}" x:Name="windowMax" Click="WindowMax_Click">
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
<Image Source="./Resources/Images/max.png" Margin="12 10"></Image>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Style="{StaticResource WindowChromeButtonStyle}" x:Name="windowNormal" Click="WindowNormal_Click" Visibility="Collapsed">
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
<Image Source="./Resources/Images/normal.png" Margin="12 10 12 5"></Image>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Style="{StaticResource WindowChromeButtonStyle}" x:Name="windowClose" Content="X" Click="WindowClose_Click" FontSize="14"></Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Grid.RowSpan="2" Grid.ColumnSpan="2"
|
|
|
|
|
Background="#1E2241"/>
|
|
|
|
|
|
|
|
|
|
<Border Grid.Row="1" Grid.RowSpan="2" Margin="10"
|
|
|
|
|
BorderBrush="#2d374c" BorderThickness="2"> <!--파일 리스트-->
|
|
|
|
|
<view:FileListView x:Name="fileListView"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="1" Margin="0 10 10 0">
|
|
|
|
|
<UniformGrid Columns="4">
|
|
|
|
|
<RadioButton x:Name="rdbtnMonitoing" GroupName="contentSwap" Content="모니터링" Tag="monitoring"
|
|
|
|
|
Style="{StaticResource ImageRadioButtonStyle}" IsChecked="True" FontSize="30"
|
|
|
|
|
helper:RadioButtonHelper.UnPressedImage="/Resources/Images/tab_bg_off.png"
|
|
|
|
|
helper:RadioButtonHelper.PressedImage="/Resources/Images/tab_bg.png"
|
|
|
|
|
Command="{Binding SwapViewCommand}"
|
|
|
|
|
CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/>
|
|
|
|
|
<RadioButton x:Name="rdbtnEnergy" GroupName="contentSwap" Content="에너지" Tag="energy"
|
|
|
|
|
Style="{StaticResource ImageRadioButtonStyle}" Grid.Column="1" FontSize="30"
|
|
|
|
|
helper:RadioButtonHelper.UnPressedImage="/Resources/Images/tab_bg_off.png"
|
|
|
|
|
helper:RadioButtonHelper.PressedImage="/Resources/Images/tab_bg.png"
|
|
|
|
|
Command="{Binding SwapViewCommand}"
|
|
|
|
|
CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/>
|
|
|
|
|
<RadioButton x:Name="rdBtnGreenHouseGas" GroupName="contentSwap" Content="온실가스" Tag="greenHouseGas"
|
|
|
|
|
Style="{StaticResource ImageRadioButtonStyle}" Grid.Column="2" FontSize="30"
|
|
|
|
|
helper:RadioButtonHelper.UnPressedImage="/Resources/Images/tab_bg_off.png"
|
|
|
|
|
helper:RadioButtonHelper.PressedImage="/Resources/Images/tab_bg.png"
|
|
|
|
|
Command="{Binding SwapViewCommand}"
|
|
|
|
|
CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/>
|
|
|
|
|
<RadioButton x:Name="rdbtnCCTV" GroupName="contentSwap" Content="CCTV" Tag="cctv"
|
|
|
|
|
Style="{StaticResource ImageRadioButtonStyle}" Grid.Column="3" FontSize="30"
|
|
|
|
|
helper:RadioButtonHelper.UnPressedImage="/Resources/Images/tab_bg_off.png"
|
|
|
|
|
helper:RadioButtonHelper.PressedImage="/Resources/Images/tab_bg.png"
|
|
|
|
|
Command="{Binding SwapViewCommand}"
|
|
|
|
|
CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/>
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="1" Margin="0 10 10 10"
|
|
|
|
|
BorderBrush="#2d374c" BorderThickness="2"> <!--기능 화면-->
|
|
|
|
|
<ContentControl x:Name="contentControl" Content="{Binding SelectedViewModel}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Window>
|
|
|
|
|
|