var tv = new TableView
{
Intent = TableIntent.Form,
Root = new TableRoot
{
new TableSection
{
new SwitchCell
{
Text = "Remember Me"
}
}
}
};
如何访问 SwitchCell 以便在 Xamarin Forms 中看到 On
属性
最佳答案
明白了:
SwitchCell sc = (SwitchCell)tv.Root[0][0];
bool booleanprop = sc.On;
只要你知道怎么做就很容易。
关于c# - 如何在 Xamarin.Forms 中访问 TableView 的子级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25199662/