1
我想將SwitchCell文本顏色綁定到視圖模型,但SwitchCell.TextColor可綁定屬性不存在。我怎樣才能綁定switchCell的文本顏色?如何將SwitchCell文本顏色綁定到Xamarin.Forms中查看模型
有一些代碼:
var channelStatusSwitch = new SwitchCell {Text = AppResources.ChannelStatusSwitchText};
channelStatusSwitch.SetBinding(SwitchCell.OnProperty, new Binding("IsChannelRunning", BindingMode.TwoWay));
channelStatusSwitch.SetBinding(/*text color poperty*/, new Binding("IsChannelRunning", BindingMode.OneWay,new BoolToColorConverter()));