SwitchCell CreateThumbOnTintColorCell(string colorName, Color colorValue)
        {
            var result = new SwitchCell();

            result.Text = colorName;

            // Assign our gloss properties - You can use the standard static setter...
            SwitchCellGloss.SetThumbOnTintColor(result, colorValue);

            // ...or instantiate an instance of the Gloss properties you want to assign values to
            //	var gloss = new XFGloss.Views.SwitchCell(result);
            //	gloss.BackgroundColor = Color.Blue;
            //	gloss.TintColor = Color.Red;
            //	...

            return(result);
        }
Exemple #2
0
 public DroidXFGlossSwitchCompatCellRenderer(BindableObject bindable)
 {
     _properties = new SwitchCellGloss(bindable);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:XFGloss.iOS.Renderers.iOSXFGlossSwitchCellRenderer"/> class.
 /// </summary>
 /// <param name="bindable">Bindable.</param>
 public iOSXFGlossSwitchCellRenderer(BindableObject bindable)
 {
     _properties = new SwitchCellGloss(bindable);
 }