53 lines
2.9 KiB
XML
53 lines
2.9 KiB
XML
<UserControl x:Class="AuroraUIComponent.Views.UCCSVLogView"
|
|
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:AuroraUIComponent.Views"
|
|
xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
|
|
d:DataContext="{d:DesignInstance Type=local:UCCSVLogViewModel}"
|
|
mc:Ignorable="d" x:Name="uc"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<behavior:Interaction.Triggers>
|
|
<behavior:PropertyChangedTrigger Binding="{Binding IsVisible, ElementName=uc}">
|
|
<behavior:InvokeCommandAction Command="{Binding CMD_VisibleChanged}" CommandParameter="{Binding IsVisible, ElementName=uc}"/>
|
|
</behavior:PropertyChangedTrigger>
|
|
</behavior:Interaction.Triggers>
|
|
|
|
<Grid Margin="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="200"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Button Content="Refresh List" Command="{Binding CMD_RefreshList}" Height="30" Margin="0 15"/>
|
|
<ListBox Grid.Row="1" ItemsSource="{Binding FileList}" SelectedItem="{Binding SelectedFile}" ItemContainerStyle="{StaticResource StListBoxItemLeft}"/>
|
|
<Button Grid.Row="2" Content="Open Folder" Command="{Binding CMD_OpenFolder}" Height="30" Margin="0 15"/>
|
|
</Grid>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="200"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock FontWeight="Bold" FontSize="20" HorizontalAlignment="Left" Margin="20 10">
|
|
<Run Text="{Binding LogName, Mode=OneWay, FallbackValue=LogName}"/>
|
|
:
|
|
<Run Text="{Binding SelectedFile, Mode=OneWay, FallbackValue=FileName}"/>
|
|
</TextBlock>
|
|
<!--<Button Grid.Column="1" Content="Clear" Command="{Binding CMD_Clear}" Height="30" Margin="10" IsEnabled="{Binding IsCurrentLogShowing}"/>-->
|
|
</Grid>
|
|
<DataGrid Grid.Row="1" ItemsSource="{Binding ViewLog.DefaultView}" AutoGenerateColumns="True" Margin="10" IsReadOnly="True"/>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|