<Window x:Class="Binding.MainWindow"
        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"
        xmlns:local="clr-namespace:Binding"
        xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <StackPanel Margin="0,0,0,10">
            <TextBlock FontWeight="Bold">Demonstrates how a report can be bound at runtime to existing data.</TextBlock>
        </StackPanel>

        <StackPanel  Grid.Row="1" Orientation="Horizontal">
            <TextBlock x:Name="lblReport" Text="Report:" VerticalAlignment="Center" Margin="10,0,10,0"/>
            <ComboBox x:Name="cbReport" Grid.Row="0" SelectedIndex="0" SelectionChanged="cbReport_SelectionChanged">
                <ComboBoxItem Content="Categories"/>
                <ComboBoxItem Content="Products"/>
            </ComboBox>
        </StackPanel>

        <c1:C1FlexViewerPane Grid.Row="2" x:Name="flexViewerPane" Padding="2" />
    </Grid>
</Window>
