-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStaticExamplesPage.xaml
75 lines (73 loc) · 2.79 KB
/
StaticExamplesPage.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
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="QrCodes.SampleApp.StaticExamplesPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:qr="clr-namespace:QrCodes.Maui;assembly=QrCodes.Maui">
<ScrollView
HorizontalScrollBarVisibility="Always"
VerticalScrollBarVisibility="Always">
<FlexLayout>
<VerticalStackLayout
Padding="30,0"
Spacing="5">
<Label
HorizontalTextAlignment="Center"
Text="Empty:" />
<Image
HeightRequest="200"
Source="{qr:QrCode}"
WidthRequest="200" />
</VerticalStackLayout>
<VerticalStackLayout
Padding="30,0"
Spacing="5">
<Label
HorizontalTextAlignment="Center"
Text="Fixed value:" />
<Image
HeightRequest="200"
Source="{qr:QrCode 'Fixed value'}"
WidthRequest="200" />
</VerticalStackLayout>
<VerticalStackLayout
Padding="30,0"
Spacing="5">
<Label
HorizontalTextAlignment="Center"
Text="Fast png:" />
<Image
HeightRequest="200"
Source="{qr:QrCode 'Fast png rendering',
Renderer=FastPng}"
WidthRequest="200" />
</VerticalStackLayout>
<VerticalStackLayout
Padding="30,0"
Spacing="5">
<Label
HorizontalTextAlignment="Center"
Text="Logo without background:" />
<Image
HeightRequest="200"
Source="{qr:QrCode 'Logo without background',
LogoSource='apple_logo_black'}"
WidthRequest="200" />
</VerticalStackLayout>
<VerticalStackLayout
Padding="30,0"
Spacing="5">
<Label
HorizontalTextAlignment="Center"
Text="Logo with background:" />
<Image
HeightRequest="200"
Source="{qr:QrCode 'Logo with background',
LogoSource='apple_logo_black',
IconBackgroundColor=White,
IconBorderWidth=6}"
WidthRequest="200" />
</VerticalStackLayout>
</FlexLayout>
</ScrollView>
</ContentPage>