-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLayoutsPage.xaml
120 lines (103 loc) · 4.5 KB
/
LayoutsPage.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="UIControls.LayoutsPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="LayoutsPage">
<ScrollView VerticalOptions="FillAndExpand">
<StackLayout Margin="10">
<!-- StackLayout: يمكن استخدامه لترتيب العناصر بشكل خطي، إما عموديًا أو أفقيًا. -->
<StackLayout
Margin="10"
BackgroundColor="LavenderBlush"
IsVisible="False"
VerticalOptions="FillAndExpand">
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<Label Text="Hi Form Stacklayput" />
<HorizontalStackLayout BackgroundColor="White" Spacing="20">
<Button BackgroundColor="Aquamarine" Text="Click me" />
<Button Text="Click me 2" />
</HorizontalStackLayout>
</StackLayout>
<StackLayout
Margin="20"
Padding="20"
BackgroundColor="LightGray"
Orientation="Vertical"
Spacing="10"
VerticalOptions="FillAndExpand">
<Label
BackgroundColor="Red"
FontSize="20"
HorizontalOptions="FillAndExpand"
HorizontalTextAlignment="End"
Text="StackLayout Properties Example" />
<Button
BackgroundColor="LightBlue"
HorizontalOptions="Fill"
Text="Button 1" />
</StackLayout>
<!-- VerticalStackLayout: محسّن لترتيب العناصر عموديًا فقط. -->
<VerticalStackLayout
Padding="20"
BackgroundColor="HotPink"
Spacing="10"
VerticalOptions="FillAndExpand">
<Label
FontSize="20"
HorizontalOptions="Center"
Text="Vertical Stack Layout Properties Example" />
<Button
BackgroundColor="LightBlue"
HorizontalOptions="Fill"
Text="Button 1" />
<Button
BackgroundColor="LightBlue"
HorizontalOptions="Fill"
Text="Button 1" />
</VerticalStackLayout>
<!-- HorizontalStackLayout: محسّن لترتيب العناصر أفقيًا فقط. -->
<HorizontalStackLayout
Padding="20"
BackgroundColor="LightCyan"
HorizontalOptions="FillAndExpand"
Spacing="10"
VerticalOptions="FillAndExpand">
<Label
FontSize="10"
HorizontalOptions="Center"
Text="Horizontal Stack Layout:" />
<Button
BackgroundColor="LightCoral"
HorizontalOptions="Fill"
Text="BTN 3" />
<Button
BackgroundColor="LightCoral"
HorizontalOptions="Fill"
Text="BTN 3" />
</HorizontalStackLayout>
</StackLayout>
</ScrollView>
</ContentPage>