<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1DataGrid_Demo2010.ExportFormats" mc:Ignorable="d" d:DataContext="{d:DesignData Source=/DesignData/SamplePeople.xaml}" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:C1DataGrid_Demo2010" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <!-- Toolbar -->
        <c1:C1Toolbar>
            <c1:C1ToolbarGroup Header="File Export">
                <c1:C1ToolbarStrip>
                    <c1:C1ToolbarButton x:Name="btnExcel" Click="btnExcel_Click">
                        <StackPanel Orientation="Horizontal" Margin="4">
                            <Image Source="/C1DataGrid_Demo2010.5;component/Resources/docexcel.png" />
                            <TextBlock Text="Excel" VerticalAlignment="Center" Margin="3 0 0 0" />
                        </StackPanel>
                    </c1:C1ToolbarButton>
                    <c1:C1ToolbarButton x:Name="btnPdf" Click="btnPdf_Click">
                        <StackPanel Orientation="Horizontal" Margin="4">
                            <Image Source="/C1DataGrid_Demo2010.5;component/Resources/pdf.png" />
                            <TextBlock Text="Pdf" VerticalAlignment="Center" Margin="3 0 0 0" />
                        </StackPanel>
                    </c1:C1ToolbarButton>
                    <c1:C1ToolbarButton x:Name="btnHtml" Click="btnHtml_Click">
                        <StackPanel Orientation="Horizontal" Margin="4">
                            <Image Source="/C1DataGrid_Demo2010.5;component/Resources/html.png" />
                            <TextBlock Text="Html" VerticalAlignment="Center" Margin="3 0 0 0" />
                        </StackPanel>
                    </c1:C1ToolbarButton>
                </c1:C1ToolbarStrip>
            </c1:C1ToolbarGroup>
            <c1:C1ToolbarGroup Header="Printing">
                <c1:C1ToolbarStrip>
                    <c1:C1ToolbarDropDown x:Name="btnHtmlFile">
                        <c1:C1ToolbarDropDown.Header>
                            <StackPanel Orientation="Horizontal" Margin="4">
                                <Image Source="/C1DataGrid_Demo2010.5;component/Resources/print.png" />
                                <TextBlock Text="Print" VerticalAlignment="Center" Margin="3 0 0 0" />
                            </StackPanel>
                        </c1:C1ToolbarDropDown.Header>
                        <c1:C1ToolbarDropDown.Menu>
                            <c1:C1ContextMenu>
                                <c1:C1MenuItem Header="Actual Size..." Tag="ActualSize" Click="printMenuItem_Click">
                                </c1:C1MenuItem>
                                <c1:C1MenuItem Header="Fit to Page Width..." Tag="PageWidth" Click="printMenuItem_Click">
                                </c1:C1MenuItem>
                                <c1:C1MenuItem Header="Fit to Single Page..." Tag="SinglePage" Click="printMenuItem_Click">
                                </c1:C1MenuItem>
                            </c1:C1ContextMenu>
                        </c1:C1ToolbarDropDown.Menu>
                    </c1:C1ToolbarDropDown>
                </c1:C1ToolbarStrip>
            </c1:C1ToolbarGroup>
            <c1:C1ToolbarGroup Header="Clipboard">
                <c1:C1ToolbarStrip Overflow="None">
                    <StackPanel>
                       <TextBlock Text="Select the cells, Ctrl+C to copy to the Clipboard," FontSize="10" />
                       <TextBlock Text="Ctrl+V to paste into Excel." FontSize="10" />
                    </StackPanel>
                </c1:C1ToolbarStrip>
            </c1:C1ToolbarGroup>
        </c1:C1Toolbar>

        <!-- DataGrid -->
        <c1:C1DataGrid Margin="0,10,0,0" x:Name="grid" ItemsSource="{Binding}" CanUserFreezeColumns="Left" CanUserGroup="True" IsReadOnly="True" AutoGenerateColumns="True" RowHeight="25" SelectionMode="MultiRange" Grid.Row="1" />

    </Grid>
</UserControl>