游雁
2024-02-19 94de39dde2e616a01683c518023d0fab72b4e103
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiApp1.RecognitionForFiles">
    <ScrollView>
        <VerticalStackLayout
            Spacing="25"
            Padding="15,15"
            VerticalOptions="Start">
            <StackLayout>
                <Grid ColumnSpacing="5" RowSpacing="5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="80" />
                        <ColumnDefinition Width="120" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40" />
                        <RowDefinition Height="15" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Label Text="models not checked" Grid.Row="0" Grid.Column="0"
                           x:Name="ModelStatusLabel"
                           VerticalTextAlignment="Center" HorizontalTextAlignment="Start"/>
                    <Button Grid.Row="0" Grid.Column="1"
                x:Name="BtnDownLoadCheck"
                Text="Check"
                SemanticProperties.Hint="Counts the number of times you click"
                Clicked="OnDownLoadCheckClicked"
                HorizontalOptions="Center" />
                    <Button Grid.Row="0" Grid.Column="2"
                x:Name="BtnDownLoadModels"
                Text="Download"
                SemanticProperties.Hint="Counts the number of times you click"
                Clicked="OnDownLoadModelsClicked"
                HorizontalOptions="EndAndExpand" />
                    <Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"
                x:Name="DownloadProgressLabel"
                Text="" IsVisible="False"
                BackgroundColor="White"
                           HorizontalOptions="FillAndExpand"
                           HorizontalTextAlignment="Start"
                TextColor="Red"/>
                    <ProgressBar  IsVisible="False" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3"
                    x:Name="DownloadProgressBar" HorizontalOptions="FillAndExpand" />
                </Grid>
                <Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                x:Name="DownloadResultsLabel"
                Text="" IsVisible="False"
                BackgroundColor="White"
                TextColor="Red"/>
                <Grid ColumnSpacing="5" RowSpacing="5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="4*" />
                        <ColumnDefinition Width="8*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40" />
                    </Grid.RowDefinitions>
                    <Button Grid.Row="0" Grid.Column="0"
                x:Name="BtnRecognitionExample"
                Text="Example"
                SemanticProperties.Hint="Counts the number of times you click"
                Clicked="OnBtnRecognitionExampleClicked"
                HorizontalOptions="FillAndExpand" />
                    <Button Grid.Row="0" Grid.Column="1"
                x:Name="BtnRecognitionFiles"
                Text="Recognition Files"
                SemanticProperties.Hint="Counts the number of times you click"
                Clicked="OnBtnRecognitionFilesClicked"
                HorizontalOptions="FillAndExpand" />
                </Grid>
            </StackLayout>
            <Label FlowDirection="MatchParent"
                Text="Display recognition results"
                SemanticProperties.HeadingLevel="Level2"
                SemanticProperties.Description="Welcome to dot net Multi platform App U I"
                FontSize="15"
                Background="#F6F8F6"
                Padding="10,10,10,10"
                x:Name="AsrResults"
                HorizontalOptions="FillAndExpand"
                BackgroundColor="White"
                TextColor="Red" />
        </VerticalStackLayout>
    </ScrollView>
</ContentPage>