parent
d10b77d5a7
commit
7daa875b05
@ -0,0 +1,38 @@
|
|||||||
|
<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="1080" d:DesignWidth="300">
|
||||||
|
|
||||||
|
<UserControl.DataContext>
|
||||||
|
<vm:FileListViewModel/>
|
||||||
|
</UserControl.DataContext>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/> <!-- Header Row -->
|
||||||
|
<RowDefinition Height="*"/> <!-- File List Row -->
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Button Width="30" Height="30"
|
||||||
|
Command="{Binding OpenFileDialogCommand}">
|
||||||
|
<materialDesign:PackIcon Kind="Folder"/>
|
||||||
|
</Button>
|
||||||
|
<ListView Grid.Row="1"
|
||||||
|
Margin="10"
|
||||||
|
ItemsSource="{Binding FileList}"
|
||||||
|
SelectedItem="{Binding SelectedFile}">
|
||||||
|
<ListView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding Name}" Margin="5"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
Loading…
Reference in new issue