Click here to Skip to main content
15,883,805 members
Articles / Desktop Programming / WPF

Infobright Statistics Viewer - MVVM

,
Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
25 Jul 2012MIT3 min read 24.8K   435   14  
WPF application to generate and display Infobright Big Data statistics.
<UserControl x:Class="com.infobright.utility.BrighthouseCompressionViewer.Controls.TableStatistics"
             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" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Name="usrCtrlTableStatistics">
    <Grid>
        <DataGrid Name="dataGrid1" ItemsSource="{Binding Path=TableStatistics}" AutoGenerateColumns="False" SelectionMode="Single">
            <DataGrid.CellStyle>
                <Style TargetType="DataGridCell">
                    <Setter Property="BorderThickness" Value="0"/>
                </Style>
            </DataGrid.CellStyle>
            <DataGrid.Columns>
                <DataGridTextColumn x:Name="ColumnTable" IsReadOnly="True" Header="Table" Binding="{Binding Name}" Width="Auto" SortMemberPath="{Binding Name}"/>
                <DataGridTextColumn x:Name="ColumnSize" IsReadOnly="True" Header="Size" Binding="{Binding CompressedSize}" Width="Auto"/>
                <DataGridTextColumn x:Name="ColumnRawSize" IsReadOnly="True" Header="Raw Size" Binding="{Binding RawSize}" Width="Auto"/>
                <DataGridTextColumn x:Name="ColumnCompression" IsReadOnly="True" Header="Compression" Binding="{Binding CompressionRatio}" Width="*"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions