小编Uza*_*eem的帖子

如何在xamarin表单中使用单选按钮

创建注册页面我需要从用户那里获取以下数据.-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)

xamarin xamarin.forms

8
推荐指数
2
解决办法
3万
查看次数

一些字体真棒图标不起作用

<div class="col-md-12">
     <div style="margin-top: 5px">
          <label>
             <a href="#"><i class="fa fa-comments" aria-hidden="true"></i> 
                Chat with @Model.MemberFirstName</a>
          </label>
          <label>
             <a href="#"><i class="fa fa-user-plus" aria-hidden="true"></i> 
                Send Friend Request</a>
          </label>
     </div>
</div>
Run Code Online (Sandbox Code Playgroud)

编写此代码,我使用2个字体真棒图标.我的第一个图标显示在输出屏幕上,但第二个图标未显示.我为第二个写了相同的代码.我也尝试删除第一个,第二个仍然没有显示.这是输出atatched.

输出屏幕

html font-awesome font-awesome-4

4
推荐指数
1
解决办法
6415
查看次数