添加项目文件。
This commit is contained in:
62
XXCpzs/Views/PageLogin.xaml
Normal file
62
XXCpzs/Views/PageLogin.xaml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<pages:PopupPage
|
||||
xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup"
|
||||
xmlns:animations="clr-namespace:Rg.Plugins.Popup.Animations;assembly=Rg.Plugins.Popup"
|
||||
xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
x:Class="XXCpzs.Views.PageLogin">
|
||||
<pages:PopupPage.Resources>
|
||||
<ResourceDictionary>
|
||||
<Color x:Key="Primary">#2196F3</Color>
|
||||
</ResourceDictionary>
|
||||
</pages:PopupPage.Resources>
|
||||
<pages:PopupPage.Animation>
|
||||
<animations:ScaleAnimation DurationIn="400"
|
||||
DurationOut="300"
|
||||
EasingIn="SinOut"
|
||||
EasingOut="SinIn"
|
||||
HasBackgroundAnimation="True"
|
||||
PositionIn="Center"
|
||||
PositionOut="Center"
|
||||
ScaleIn="1.2"
|
||||
ScaleOut="0.8" />
|
||||
</pages:PopupPage.Animation>
|
||||
<Frame CornerRadius="20" BackgroundColor="White" VerticalOptions="Center" Margin="40,20" HeightRequest="400">
|
||||
<StackLayout >
|
||||
<Label Text="部门:" VerticalOptions="CenterAndExpand" />
|
||||
<Picker x:Name="BumenPicker"
|
||||
ItemDisplayBinding="{Binding title}"
|
||||
ItemsSource="{Binding BuMenItems}"
|
||||
Title="Select a monkey"
|
||||
SelectedIndexChanged="OnBumenPickerSelectedIndexChangedAsync"
|
||||
TitleColor="Red" />
|
||||
<Label Text="用户名:" VerticalOptions="CenterAndExpand" />
|
||||
<Picker x:Name="UserPicker"
|
||||
ItemDisplayBinding="{Binding realname}"
|
||||
ItemsSource="{Binding UserItems}"
|
||||
Title="Select a User Name"
|
||||
TitleColor="Red"
|
||||
SelectedIndexChanged="UserPicker_SelectedIndexChanged"/>
|
||||
|
||||
<Label Text="密码:" IsEnabled="False" VerticalOptions="CenterAndExpand" />
|
||||
<Entry x:Name="UserPass" Placeholder="" IsPassword="True" />
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="记住密码?" HorizontalOptions ="StartAndExpand" />
|
||||
<Switch IsToggled="false" HorizontalOptions="EndAndExpand" />
|
||||
</StackLayout>
|
||||
<Label Text="{Binding ValidateMsg}" TextColor="Red" HorizontalOptions="Center"/>
|
||||
<Button Margin="0,10,0,0"
|
||||
Text="登录"
|
||||
BackgroundColor="{StaticResource Primary}"
|
||||
TextColor="White"
|
||||
HeightRequest="50"
|
||||
VerticalOptions="Start"
|
||||
Clicked="Button_ClickedAsync"/>
|
||||
<Label Text="没有账号?请联系管理员。" HorizontalOptions="Center" FontSize="12"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
</pages:PopupPage>
|
||||
Reference in New Issue
Block a user