c# - Xamarin forms change SwichCell Text Color -
is possible change text color of xamarins swichcell ?
at moment text in swichcell colored gray, , want change black.
my xaml looks this:
.. <tableview intent="data" > <tableroot>; <tablesection> <switchcell text="allow push notifications"/> </tablesection> <tablesection> <viewcell> <viewcell.view> <button grid.column="1" text="log out" clicked="logoutbuttonclick" margin="-20,-20,-20,-20"/> </viewcell.view> </viewcell> </tablesection> <tablesection> <textcell text="android version 1.2.1" textcolor="black"/> </tablesection> </tableroot> </tableview>
the thing regarding found here example ios , other provided solutions uses textcell , swich combination, not fit scenario (i think)
someone has linked stackoverflow answer regarding swich here. not work situacion since i'm using swichcell , not have properties listed in answer(also has android version)
if switchcell doesn't expose backgroundcolor property, can wrap switch control in own viewcell.
can't confirm syntax, this:
<viewcell> <stacklayout> <switch backgroundcolor="black"/> </stacklayout> </viewcell>
Comments
Post a Comment