|
|
|
@ -7,7 +7,7 @@
|
|
|
|
xmlns:vm="clr-namespace:SmartAquaViewer.ViewModel"
|
|
|
|
xmlns:vm="clr-namespace:SmartAquaViewer.ViewModel"
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="1040" d:DesignWidth="270">
|
|
|
|
d:DesignHeight="1040" d:DesignWidth="260">
|
|
|
|
|
|
|
|
|
|
|
|
<UserControl.DataContext>
|
|
|
|
<UserControl.DataContext>
|
|
|
|
<vm:FileListViewModel/>
|
|
|
|
<vm:FileListViewModel/>
|
|
|
|
@ -16,25 +16,38 @@
|
|
|
|
<Border Background="#264A60">
|
|
|
|
<Border Background="#264A60">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="100"/>
|
|
|
|
<RowDefinition Height="80"/>
|
|
|
|
<!-- Header Row -->
|
|
|
|
<!-- Header Row -->
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<!-- File List Row -->
|
|
|
|
<!-- File List Row -->
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Image Source="/Resources/Images/ListImage.png"
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="24 0 0 0">
|
|
|
|
Width="35" Margin="20 0"
|
|
|
|
<Border Width="30" Height="30"
|
|
|
|
HorizontalAlignment="Left"/>
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
<TextBlock Text="파일 목록" FontFamily="{StaticResource SCDream5}"
|
|
|
|
Margin="0 0 12 0"
|
|
|
|
FontSize="20" FontWeight="Bold" Foreground="White"
|
|
|
|
Background="#4178BE"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
CornerRadius="2">
|
|
|
|
Margin="0 0 30 0"/>
|
|
|
|
<Image Source="/Resources/Images/ListImage.png"
|
|
|
|
<Button Width="40" Height="40"
|
|
|
|
VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
|
|
Margin="20 0" Padding="0"
|
|
|
|
Width="24" Height="24"/>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<TextBlock Text="파일 목록" FontFamily="{StaticResource SCDream5}"
|
|
|
|
|
|
|
|
FontSize="24" FontWeight="Bold" Foreground="White"
|
|
|
|
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<Button Width="36" Height="36"
|
|
|
|
|
|
|
|
Margin="24 0" Padding="0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Background="#ffd663"
|
|
|
|
Background="Transparent"
|
|
|
|
|
|
|
|
BorderThickness="0"
|
|
|
|
Command="{Binding OpenFileDialogCommand}">
|
|
|
|
Command="{Binding OpenFileDialogCommand}">
|
|
|
|
<materialDesign:PackIcon Kind="FolderAdd"/>
|
|
|
|
<Border Background="#325C80" CornerRadius="25"
|
|
|
|
|
|
|
|
Width="36" Height="36">
|
|
|
|
|
|
|
|
<Image Source="/Resources/Images/add_folder.png"
|
|
|
|
|
|
|
|
Width="24" Height="24"
|
|
|
|
|
|
|
|
VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
@ -54,33 +67,44 @@
|
|
|
|
</TextBlock.Style>
|
|
|
|
</TextBlock.Style>
|
|
|
|
</TextBlock>
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollViewer Grid.Row="1" Margin="10" >
|
|
|
|
<ListView
|
|
|
|
<ListView
|
|
|
|
Grid.Row="1" Padding="0"
|
|
|
|
ItemsSource="{Binding FileList}"
|
|
|
|
ItemsSource="{Binding FileList}"
|
|
|
|
SelectedItem="{Binding SelectedFile}"
|
|
|
|
SelectedItem="{Binding SelectedFile}"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden"
|
|
|
|
BorderThickness="0" Background="Transparent">
|
|
|
|
BorderThickness="0">
|
|
|
|
<ListView.ItemContainerStyle>
|
|
|
|
<ListView.ItemContainerStyle>
|
|
|
|
<Style TargetType="ListViewItem">
|
|
|
|
<Style TargetType="ListViewItem">
|
|
|
|
<Setter Property="Margin" Value="2"/>
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
<Setter Property="Background" Value="LightSkyBlue"/>
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
</Trigger>
|
|
|
|
</Style>
|
|
|
|
</Style.Triggers>
|
|
|
|
</ListView.ItemContainerStyle>
|
|
|
|
</Style>
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
</ListView.ItemContainerStyle>
|
|
|
|
<DataTemplate>
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<Border x:Name="bdRoot" Height="56" Margin="24 0 0 0">
|
|
|
|
<DataTemplate>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 5">
|
|
|
|
<Image Source="/Resources/Images/file_logo.png"
|
|
|
|
<TextBlock Text="{Binding Name}" Margin="5"
|
|
|
|
Width="24" Height="24" Margin="0 0 8 0"/>
|
|
|
|
FontSize="16" FontWeight="Medium" Foreground="White"
|
|
|
|
<TextBlock Text="{Binding Name}"
|
|
|
|
FontFamily="{StaticResource SCDream4}"/>
|
|
|
|
FontSize="20" Foreground="White"
|
|
|
|
|
|
|
|
FontFamily="{StaticResource SCDream4}"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"/>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</Border>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
|
|
|
|
</ListView>
|
|
|
|
<DataTemplate.Triggers>
|
|
|
|
</ScrollViewer>
|
|
|
|
<DataTrigger
|
|
|
|
|
|
|
|
Value="True"
|
|
|
|
|
|
|
|
Binding="{Binding IsSelected,
|
|
|
|
|
|
|
|
RelativeSource={RelativeSource AncestorType=ListViewItem}}">
|
|
|
|
|
|
|
|
<Setter TargetName="bdRoot" Property="Background" Value="#325C80"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
</DataTemplate.Triggers>
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
|
|
|
|
</ListView>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
</UserControl>
|
|
|
|
</UserControl>
|
|
|
|
|