Source

main / Source / Excel / Excel.AddIn / Excel.AddIn / View / Usercontrols / WorkspaeControl.xaml

<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    x:Class="DataUp.Excel.Addin.WorkspaeControl"
    x:Name="UserControl"
    d:DesignWidth="640" d:DesignHeight="480">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!--<ResourceDictionary Source="../../Resources/Styles.xaml"/>-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <DataGrid ItemsSource="{Binding Sheets}" Style="{DynamicResource DataGridStyle}" RowBackground="#FFF9F9F9" 
                  AlternatingRowBackground="#FFFFFFFF" VerticalGridLinesBrush="{DynamicResource GridVerticalLineBrush}" 
                  Grid.Row="1" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Width="*" Binding="{Binding SheetName}" Header="Name">
                    <DataGridTextColumn.ElementStyle>
                        <Style TargetType="TextBlock">
                            <Setter Property="Background" Value="Transparent"/>
                            <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
                            <Setter Property="ToolTip" Value="{Binding SheetName}"/>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
                <DataGridTextColumn ElementStyle="{DynamicResource RightAlignedTextStyle}" Width="150"
                                    Binding="{Binding FixableErrorCount}" Header="FIXABLE ERRORS"/>
                <DataGridTextColumn ElementStyle="{DynamicResource RightAlignedTextStyle}"  Width="200" 
                                    Binding="{Binding UnFixableErrorCount}" Header="NON FIXABLE ERRORS"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</UserControl>