-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddEmployee.xaml
More file actions
21 lines (18 loc) · 1.09 KB
/
AddEmployee.xaml
File metadata and controls
21 lines (18 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CRUDWebAPI.AddEmployee">
<ContentPage.Content>
<StackLayout Padding="10">
<Label Text="Name" TextColor="Black" FontSize="Small"/>
<Entry Text="{Binding Name}" HorizontalOptions="FillAndExpand" Placeholder="Name"/>
<Label Text="Address" TextColor="Black" FontSize="Small"/>
<Entry Text="{Binding Address}" HorizontalOptions="FillAndExpand" Placeholder="Address"/>
<Label Text="Phone" TextColor="Black" FontSize="Small"/>
<Entry Text="{Binding Phone}" HorizontalOptions="FillAndExpand" Placeholder="Phone"/>
<Button Text="Save" Command="{Binding SaveEmployee}"/>
<Button Text="Delete" Command="{Binding DeleteEmployee}" BackgroundColor="Red" TextColor="White"
IsVisible="{Binding IsVisibleDeleteBtn}"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>