|
|
|
|
<UserControl x:Class="SmartAquaViewer.View.FileListView"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:local="clr-namespace:SmartAquaViewer.View"
|
|
|
|
|
xmlns:vm="clr-namespace:SmartAquaViewer.ViewModel"
|
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="1040" d:DesignWidth="270">
|
|
|
|
|
|
|
|
|
|
<UserControl.DataContext>
|
|
|
|
|
<vm:FileListViewModel/>
|
|
|
|
|
</UserControl.DataContext>
|
|
|
|
|
|
|
|
|
|
<Border Background="#1E2241">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="100"/>
|
|
|
|
|
<!-- Header Row -->
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<!-- File List Row -->
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<Image Source="/Resources/Images/ListImage.png"
|
|
|
|
|
Width="35" Margin="20 0"/>
|
|
|
|
|
<TextBlock Text="파일 목록"
|
|
|
|
|
FontSize="20" FontWeight="Bold" Foreground="White"
|
|
|
|
|
VerticalAlignment="Center"/>
|
|
|
|
|
<Button Width="40" Height="40"
|
|
|
|
|
Margin="30 0" Padding="0"
|
|
|
|
|
Background="#ffd663"
|
|
|
|
|
Command="{Binding OpenFileDialogCommand}">
|
|
|
|
|
<materialDesign:PackIcon Kind="FolderAdd"/>
|
|
|
|
|
</Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<ScrollViewer Grid.Row="1" Margin="10" >
|
|
|
|
|
<ListView
|
|
|
|
|
ItemsSource="{Binding FileList}"
|
|
|
|
|
SelectedItem="{Binding SelectedFile}"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden"
|
|
|
|
|
BorderThickness="0" Background="Transparent">
|
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 5">
|
|
|
|
|
<TextBlock Text="{Binding Name}" Margin="5"
|
|
|
|
|
FontSize="16" FontWeight="Medium" Foreground="White"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
|
</ListView>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</UserControl>
|