<UserControl x:Class="ErrorInBlend3TestProject.MainPage"
    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:grid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" xmlns:data="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data" xmlns:control="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot" ShowGridLines="False" Background="#000000">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Vertical" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">
            <control:RadChart Name="Chart1" Height="600" Margin="50,0,50,0" />
        </StackPanel>
        <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center">
            <TextBlock Name="Grid1Title" Text="All Investors" TextAlignment="Center" FontFamily="Verdana" FontSize="16" Foreground="#FFFFFF" FontWeight="Bold" />
            <grid:RadGridView IsReadOnly="True" Width="600" ColumnsWidthMode="Fill" x:Name="Grid1" AutoGenerateColumns="False" Height="800" ShowColumnFooters="True">
                <grid:RadGridView.Columns>
                    <grid:GridViewDataColumn UniqueName="accountname" Header="Account Name">
                        <grid:GridViewDataColumn.AggregateFunctions>
                            <data:CountFunction Caption="Total: " />
                        </grid:GridViewDataColumn.AggregateFunctions>
                    </grid:GridViewDataColumn>
                    <grid:GridViewDataColumn UniqueName="accountno" Header="Account No" IsVisible="False" />
                    <grid:GridViewDataColumn UniqueName="allocation" Header="Allocation" DataFormatString="{}{0:0}">
                        <grid:GridViewDataColumn.AggregateFunctions>
                            <data:SumFunction ResultFormatString="{}{0:0}" SourceField="allocation" />
                        </grid:GridViewDataColumn.AggregateFunctions>
                    </grid:GridViewDataColumn>
                    <grid:GridViewDataColumn UniqueName="demand" Header="Demand" DataFormatString="{}{0:0}">
                        <grid:GridViewDataColumn.AggregateFunctions>
                            <data:SumFunction ResultFormatString="{}{0:0}" SourceField="demand" />
                        </grid:GridViewDataColumn.AggregateFunctions>
                    </grid:GridViewDataColumn>
                    <grid:GridViewDataColumn UniqueName="country" IsVisible="False" />
                </grid:RadGridView.Columns>
            </grid:RadGridView>
        </StackPanel>
    </Grid>
</UserControl>
