<Page x:Class="FLY.Thick.FilmCasting.UI.PgMenu"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:misc="clr-namespace:Misc;assembly=MISC"
            xmlns:local="clr-namespace:FLY.Thick.FilmCasting.UI" xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
      mc:Ignorable="d" 
      d:DesignHeight="768" d:DesignWidth="1388" 
	Title="Page_Menu">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Converters.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
    <Grid Background="{StaticResource Brushes.ThemeBackground}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="540*" />
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" >
            <Button Style="{StaticResource Styles.TitleBar.BackButton}" Command="BrowseBack" >
                <iconPacks:PackIconMaterial Kind="ArrowLeftThick" />
            </Button>
            <TextBlock Style="{StaticResource Styles.TitleBar.Text2}"  Text="测厚仪配置" />
        </StackPanel>
        <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>

                    <RowDefinition />
                    <RowDefinition Height="100" />
                </Grid.RowDefinitions>
                <WrapPanel Orientation="Vertical" Grid.Column="1">
                    <WrapPanel.Resources>
                        <Style TargetType="Button" BasedOn="{StaticResource Styles.PgMenu.ItemButton}"/>
                    </WrapPanel.Resources>

                    <Button Click="button_initparam_Click" >
                        <Grid>
                            <Image Source="/FLY.Thick.Base.UI;component/Images/bg_wheel.jpg" Stretch="UniformToFill" />
                            <TextBlock Text="系统参数" />
                        </Grid>
                    </Button>


                    <Button Click="button_curve_Click" >
                        <TextBlock Text="AD曲线"/>
                    </Button>
                    <Button Click="button_bordersearch_Click" >
                        <TextBlock Text="边界查找"/>
                    </Button>
                    <Button Click="button_reject_Click" >
                        <TextBlock Text="基材剔除"/>
                    </Button>
                    <Button Click="btnBoltmapClick" >
                        <Grid>
                            <Image Source="/FLY.Thick.Base.UI;component/Images/bg_ruler.jpg" Stretch="UniformToFill" />
                            <TextBlock Text="分区设定" />
                        </Grid>
                    </Button>
                    <Button Click="button_getsample_Click" >
                        <Grid>
                            <Image Source="/FLY.Thick.Base.UI;component/Images/bg_sample.jpg" Stretch="UniformToFill" />

                            <TextBlock Text="样品标定" />
                        </Grid>
                    </Button>

                    <Button Click="button_gageinfo_Click" >
                        <TextBlock Text="机架信息"/>
                    </Button>
                    <Button Click="button_scancorr_Click" >
                        <TextBlock Text="机架修正"/>
                    </Button>

                    <Button Click="button_warning_Click" Background="Red" >
                        <TextBlock Background="DarkRed" Text="报警管理" />
                    </Button>
                    <Button Click="button_scanwarning_Click" Background="DarkRed" >
                        <TextBlock Text="厚度报警" Background="DarkRed"  />
                    </Button>
                    <Button Click="button_grid_Click" >
                        <TextBlock Text="机架调试"/>
                    </Button>

                    <Button Click="button_flyad_Click">
                        <Grid>
                            <Image Source="/FLY.Thick.Base.UI;component/Images/bg_adbox.jpg" Stretch="UniformToFill" />
                            <TextBlock Text="AD盒" />
                        </Grid>
                    </Button>
                </WrapPanel>
            </Grid>
        </ScrollViewer>


    </Grid>
</Page>
