<Page
    x:Class="ExpressionEditorSamples.ColumnCalculation"
    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="using:ExpressionEditorSamples"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Choose Expression to Edit: " VerticalAlignment="Center"/>
                <ComboBox x:Name="comboBox" SelectionChanged="combobox_SelectionChanged">
                    <ComboBoxItem Tag="CustomField1">Special Price (New Customers)</ComboBoxItem>
                    <ComboBoxItem Tag="CustomField2">Special Price (Card Holders)</ComboBoxItem>
                </ComboBox>
            </StackPanel>
            <local:ExpressionEditorEE x:Name="editor" Width="600" Grid.Row="1"/>
        </Grid>
        <local:FlexGridEE x:Name="flexGrid" Margin="10,0,0,0" Grid.Column="1"/>
    </Grid>
</Page>
