【发布时间】:2014-08-17 22:06:27
【问题描述】:
我正在使用Xamarin.Forms,目前正在尝试制作没有节标题的TableView。现在在 iOS 上看起来不错,因为部分标题不可见或不可点击,但在 Android 上,标题是空白、可见且可点击的。
我试过这个http://forums.xamarin.com/discussion/18037/tablesection-w-out-header
xaml 中的代码 -
<TableView>
<TableView.Root>
<TableSection>
<TextCell Text="Login" Command="{Binding Login}" />
<TextCell Text="Sign Up" Command="{Binding SignUp}" />
<TextCell Text="About" Command="{Binding About}"/>
</TableSection>
</TableView.Root>
</TableView>
c#代码
Content = new TableView
{
Root = new TableRoot
{
new TableSection ()
{
new TextCell { Text="Login", Command = Login },
new TextCell { Text="Sign Up", Command = SignUp },
new TextCell { Text="About", Command = About },
},
},
};
【问题讨论】:
标签: xamarin xamarin.forms