<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1_DemoLocalization2010.MainPage" 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:common="clr-namespace:SamplesCommon;assembly=SamplesCommon.5" xmlns:demo="clr-namespace:C1_Demo">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" Margin="8,0,8,0">
            <TextBlock Text="Language" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="8,0,0,0" />
            <common:LocalizationComboBox Height="22" Width="150" Margin="4,0,0,0" />
        </StackPanel>
        <c1:C1TabControl TabItemShape="Rounded" Padding="3" Grid.Row="1">
            <c1:C1TabControl.ItemContainerStyle>
                <Style TargetType="c1:C1TabItem">
                    <Setter Property="Padding" Value="5" />
                </Style>
            </c1:C1TabControl.ItemContainerStyle>
            <c1:C1TabItem Header="C1MessageBox">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="20" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Select box buttons:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" />
                    <c1:C1ComboBox x:Name="_buttons" HorizontalAlignment="Left" Width="150" Margin="5" Grid.Row="1" Grid.Column="2" />
                    <TextBlock Text="Select box type:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" />
                    <c1:C1ComboBox x:Name="_boxType" HorizontalAlignment="Left" Width="150" Margin="5" Grid.Row="2" Grid.Column="1" />
                    <Button Content=" Create Box... " Click="CreateBox_Click" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="30" Height="30" Grid.Row="3" Grid.ColumnSpan="2" />
                </Grid>
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1TabControl">
                <c1:C1TabControl TabItemClose="InEachTab">
                    <c1:C1TabItem Header="Sales Per Month">
                        <demo:SalesPerMonth />
                    </c1:C1TabItem>
                    <c1:C1TabItem Header="Sales Per Sales Agent">
                        <demo:SalesPerAgents />
                    </c1:C1TabItem>
                    <c1:C1TabItem Header="Sales Agents">
                        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" BorderThickness="0" Background="Transparent" Margin="0" Padding="0">
                            <demo:SalesAgents />
                        </ScrollViewer>
                    </c1:C1TabItem>
                    <c1:C1TabItem Header="Report Summary">
                        <demo:ReportSummary />
                    </c1:C1TabItem>
                    <c1:C1TabItem Header="Dummy Item" />
                    <c1:C1TabItem Header="Dummy Item" />
                    <c1:C1TabItem Header="Dummy Item" />
                    <c1:C1TabItem Header="Dummy Item" />
                    <c1:C1TabItem Header="Dummy Item" />
                    <c1:C1TabItem Header="Dummy Item" />
                    <c1:C1TabItem Header="Dummy Item" />
                    <c1:C1TabItem Header="Dummy Item" />
                    <c1:C1TabItem Header="Dummy Item" />
                </c1:C1TabControl>
            </c1:C1TabItem>
        </c1:C1TabControl>
    </Grid>
</UserControl>