-
-
Notifications
You must be signed in to change notification settings - Fork 194
/
Copy pathMainPage.xaml
62 lines (50 loc) · 1.74 KB
/
MainPage.xaml
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
<?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"
xmlns:mauiSpeech="clr-namespace:MauiSpeech"
x:DataType="mauiSpeech:MainViewModel"
x:Class="MauiSpeech.MainPage">
<ContentPage.Resources>
<mauiSpeech:PickerDisplayConverter x:Key="PickerDisplayConverter" />
</ContentPage.Resources>
<ScrollView>
<VerticalStackLayout
Spacing="25"
Padding="30,0"
VerticalOptions="Center">
<Picker ItemsSource="{Binding Locales}"
SelectedItem="{Binding Locale}"
ItemDisplayBinding="{Binding ., Converter={StaticResource PickerDisplayConverter}}"/>
<Editor
Text="{Binding Text}"
FontSize="18"
HorizontalOptions="Center" />
<Button
Text="Play"
Command="{Binding PlayCommand}"
HorizontalOptions="Center" />
<Label
Text="Enter OpenAI API Key"
FontSize="18"
HorizontalOptions="Center" />
<Entry
Placeholder="Enter OpenAI API Key"
IsPassword="True"
Text="{Binding ApiKey}"
FontSize="18"
HorizontalOptions="Center" />
<Label
Text="{Binding RecognitionText}"
FontSize="18"
HorizontalOptions="Center" />
<Button
Text="Listen"
Command="{Binding ListenCommand}"
HorizontalOptions="Center" />
<Button
Text="Listen Cancel"
Command="{Binding ListenCancelCommand}"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>