<Window x:Class="SmartAquaViewer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:SmartAquaViewer"
        xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
        xmlns:view="clr-namespace:SmartAquaViewer.View"
        xmlns:vm="clr-namespace:SmartAquaViewer.ViewModel"
        xmlns:helper="clr-namespace:SmartAquaViewer.Helper"
        mc:Ignorable="d"
        Title="MainWindow" Height="1080" Width="1920" WindowStartupLocation="CenterScreen">

    <Window.DataContext>
        <vm:MainViewModel/>
    </Window.DataContext>
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="270"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <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">  <!--기능 화면-->
            <ContentControl x:Name="contentControl" Content="{Binding SelectedViewModel}"/>
        </Grid>
    </Grid>
</Window>
