-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntryPage.xaml
116 lines (105 loc) · 4.38 KB
/
EntryPage.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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="UIControls.EntryPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="EntryPage">
<!--
هو عنصر واجهة مستخدم متعدد الاستخدامات لإدخال النصوص في تطبيقات Entry
يمكن تخصيصه بطرق متعددة ليتناسب مع تصميم التطبيق ومتطلبات المستخدم.
لجمع اسم المستخدم وكلمة المرور مع توفير ملاحظات بصرية واضحة للمستخدم.
===============================الخصـــائص======================
Text: النص الحالي داخل Entry.
Placeholder: النص الذي يظهر كعلامة مؤقتة عندما يكون Entry فارغًا.
IsPassword: إذا كان Entry يجب أن يخفي النص المُدخل (مثالي لكلمات المرور).
Keyboard: نوع لوحة المفاتيح التي تظهر (مثل الأرقام، النص الكامل، البريد الإلكتروني، إلخ).
TextColor: لون النص داخل Entry.
PlaceholderColor: لون النص المؤقت.
BackgroundColor: لون الخلفية.
FontSize: حجم النص.
HorizontalTextAlignment: محاذاة النص أفقيًا.
VerticalOptions و HorizontalOptions: تحديد كيفية توزيع المساحة غير المستخدمة حول Entry.
-->
<VerticalStackLayout Margin="20">
<Label
FontSize="20"
HorizontalOptions="Start"
Text="Enter your name:" />
<Entry
x:Name="TxtName"
ClearButtonVisibility="WhileEditing"
HorizontalOptions="FillAndExpand"
MaxLength="10"
Placeholder="Name of User"
ReturnType="Next"
TextTransform="Uppercase" />
<!--<Entry
x:Name="TxtName"
BackgroundColor="LightGray"
CharacterSpacing="2"
ClearButtonVisibility="WhileEditing"
Completed="TxtName_Completed"
CursorPosition="0"
DescendantAdded="TxtName_DescendantAdded"
DescendantRemoved="TxtName_DescendantRemoved"
FlowDirection="RightToLeft"
Focused="TxtName_Focused"
FontSize="18"
HorizontalOptions="FillAndExpand"
HorizontalTextAlignment="Start"
IsEnabled="True"
Keyboard="Email"
MaxLength="10"
Placeholder="Name"
PlaceholderColor="LightCoral"
ReturnType="Next"
Text="sss"
TextChanged="TxtName_TextChanged"
TextColor="Black"
TextTransform="Uppercase"
Unfocused="TxtName_Unfocused"
VerticalOptions="Center" />-->
<!--<Label
Margin="0,20,0,0"
FontSize="20"
HorizontalOptions="Start"
Text="Enter your Phone:" />-->
<Entry
x:Name="TxtPhone"
BackgroundColor="LightGray"
ClearButtonVisibility="WhileEditing"
FontSize="18"
HorizontalOptions="FillAndExpand"
HorizontalTextAlignment="Start"
Keyboard="Telephone"
Placeholder="+218924447446"
PlaceholderColor="Gray"
TextColor="Black"
VerticalOptions="Center" />
<Label
Margin="0,20,0,0"
FontSize="20"
HorizontalOptions="Start"
Text="Enter your password:" />
<Entry
x:Name="TxtPassword"
BackgroundColor="LightGray"
ClearButtonVisibility="WhileEditing"
Focused="TxtPassword_Focused"
FontSize="18"
HorizontalOptions="FillAndExpand"
HorizontalTextAlignment="Start"
IsPassword="True"
Placeholder="Password"
PlaceholderColor="Gray"
TextChanged="TxtPassword_TextChanged"
TextColor="Black"
Unfocused="TxtPassword_Unfocused"
VerticalOptions="Center" />
<Button
Margin="0,20,0,0"
HorizontalOptions="Center"
Text="Submit"
VerticalOptions="EndAndExpand" />
</VerticalStackLayout>
</ContentPage>