-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGridLayout.xaml
114 lines (104 loc) · 3.6 KB
/
GridLayout.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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="UIControls.GridLayout"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="GridLayout"
FlowDirection="RightToLeft">
<!--
هو تخطيط مرن وقوي يمكنك من تنظيم العناصر في شبكة من الصفوف والأعمدة Grid
يمكنك التحكم في حجم كل صف وعمود، بالإضافة إلى تعيين المسافات .
هذا التخطيط مثالي لتنسيق المحتويات المعقدة بشكل دقيق.
-->
<Grid
Padding="20"
BackgroundColor="LightGray"
ColumnDefinitions="*,*"
ColumnSpacing="10"
RowDefinitions="auto,*,*,*,*,*,*,*,*"
RowSpacing="10">
<!-- Add controls to the grid -->
<Label
Grid.Row="0"
Grid.ColumnSpan="2"
BackgroundColor="LightBlue"
HorizontalOptions="Center"
Text="Grid Header :"
VerticalOptions="Center" />
<!-- Stack Layout Page -->
<Button
x:Name="BtnStackLayout"
Grid.Row="1"
Grid.Column="0"
BackgroundColor="#03346E"
Clicked="BtnStackLayout_Clicked"
LineBreakMode="WordWrap"
Text="StackLayout الحاويات "
TextColor="White" />
<!-- Entry Page -->
<Button
x:Name="BtnEntryPage"
Grid.Row="1"
Grid.Column="1"
BackgroundColor="#173B45"
Clicked="BtnEntryPage_Clicked"
LineBreakMode="WordWrap"
Text="Entry Page حقول الادخال"
TextColor="White" />
<!-- Buttons Page -->
<Button
x:Name="BtnButtonsPage"
Grid.Row="2"
Grid.Column="0"
Grid.ColumnSpan="3"
BackgroundColor="#88D66C"
Clicked="BtnButtonsPage_Clicked"
LineBreakMode="WordWrap"
Text="Buttons Page - صفحة الازرار "
TextColor="Black" />
<!-- Grid View Page -->
<Button
x:Name="BtnGridView"
Grid.Row="3"
Grid.Column="1"
BackgroundColor="#677D6A"
Clicked="BtnGridView_Clicked"
LineBreakMode="WordWrap"
Text="Grid View حاوية الشبكة"
TextColor="Black" />
<!-- Images Page -->
<Button
x:Name="BtnGoImages"
Grid.Row="3"
Grid.Column="0"
BackgroundColor="#433D8B"
Clicked="BtnGoImages_Clicked"
LineBreakMode="WordWrap"
Text="Images Page الصور"
TextColor="White" />
<!-- Picker Page -->
<Button
x:Name="BtnPicerPage"
Grid.Row="4"
Grid.Column="0"
Grid.ColumnSpan="3"
Padding="50,0"
BackgroundColor="#FF5F00"
Clicked="BtnPicerPage_Clicked"
LineBreakMode="WordWrap"
Text="Picer Page قائمة الاختيارات"
TextColor="White" />
<!-- Picker Page -->
<Button
x:Name="BtnCalculator"
Grid.Row="5"
Grid.Column="0"
Grid.ColumnSpan="3"
Padding="50,0"
BackgroundColor="Brown"
Clicked="BtnCalculator_Clicked"
LineBreakMode="WordWrap"
Text="Calculator Page الالة الحـاسبة"
TextColor="White" />
</Grid>
</ContentPage>