Add csv viewer

This commit is contained in:
Paddy Xu
2017-07-01 23:27:41 +03:00
parent a1e3920569
commit 3e9f9eeec9
7 changed files with 365 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<UserControl x:Class="QuickLook.Plugin.CsvViewer.CsvViewerPanel"
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:QuickLook.Plugin.CsvViewer"
x:Name="csvViewer"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<DataGrid x:Name="dataGrid" AlternationCount="2" BorderThickness="0" Background="Transparent"
RowBackground="Transparent" GridLinesVisibility="None"
IsReadOnly="True" HeadersVisibility="None"
AutoGenerateColumns="False" CanUserReorderColumns="False"
ItemsSource="{Binding Path=Rows,ElementName=csvViewer}" AlternatingRowBackground="#99ECECEC" />
</Grid>
</UserControl>