我有一个应用程序,我可以更改顺序和卡的显示方式.对于拥有iOS的任何人,我需要与"设置">"联系人">"排序顺序"页面的工作方式非常相似的内容.
这显示了两行.一个是First,Last,另一个是Last,First.当用户点击一行时,它就像一个单选按钮,并在行的末尾出现一个刻度线.
我想尝试实现此功能,但我不知道从哪里开始.我应该使用ViewCell还是TextCell来完成这项工作,以及如何有任何关于如何实现它的想法
.?
创建注册页面我需要从用户那里获取以下数据.-First Name -Last Name -Username -Email -Password-出生日期 - 性别 - 用户角色
对于Last to参数,我无法找到如何在xamarin表单中使用单选按钮.以下是我的注册页面代码.
<StackLayout BackgroundColor="#30af91" Padding="60">
<Entry Text="{Binding FirstName}" Placeholder="First Name"/>
<Entry Text="{Binding LastName}" Placeholder="Last Name"/>
<Entry Text="{Binding UserName}" Placeholder="Last Name"/>
<Entry Text="{Binding Email}" Placeholder="Email" />
<Entry Text="{Binding Password}" Placeholder="Password" IsPassword="True"/>
<Entry Text="{Binding ConfirmPassword}" Placeholder="Confirm Password" IsPassword="True"/>
<DatePicker MinimumDate="1/1/1948" MaximumDate="12/31/2007"/>
<!--Radio buttons for Gender
1. Male 2.Female-->
<!--Radio Buttons for UserRole
1. Admin 2.Participant-->
<Button Command="{Binding RegisterCommand}" Text="Register"/>
<Label Text="{Binding Message}" />
</StackLayout>
Run Code Online (Sandbox Code Playgroud)