-
Notifications
You must be signed in to change notification settings - Fork 2
/
BarcodeClassicComponentPage.xaml
42 lines (42 loc) · 1.88 KB
/
BarcodeClassicComponentPage.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
<?xml version="1.0" encoding="utf-8" ?>
<pages:BaseComponentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
xmlns:classicComponent="clr-namespace:ScanbotSDK.MAUI.ClassicComponent;assembly=BarcodeSDK.MAUI"
xmlns:pages="clr-namespace:ScanbotSDK.MAUI.Example.Pages"
x:Class="ScanbotSDK.MAUI.Example.Pages.BarcodeClassicComponentPage"
ios:Page.UseSafeArea="true"
Title="BarcodeClassicComponentPage"
NavigationPage.HasNavigationBar="True">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*" />
<RowDefinition Height="7*" />
<RowDefinition Height="2*" />
</Grid.RowDefinitions>
<Label Grid.Row="0"
Text="Barcode ClassicComponent"
FontSize="Subtitle"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"
VerticalOptions="Center"
HorizontalOptions="Fill" />
<StackLayout Grid.Row="1">
<classicComponent:BarcodeScannerView
x:Name="cameraView"
HeightRequest="500"
WidthRequest="300"
OnBarcodeScanResult="CameraView_OnOnBarcodeScanResult"
HorizontalOptions="Fill"
VerticalOptions="Fill" />
</StackLayout>
<Grid Grid.Row="2">
<Label
x:Name="lblResult"
Text="Result"
VerticalTextAlignment="Center"
VerticalOptions="Center"
HorizontalOptions="Center" />
</Grid>
</Grid>
</pages:BaseComponentPage>