1 implementation of ISwitch
Microsoft.Maui.Controls (1)
Switch\Switch.cs (1)
9 public partial class Switch : View, IElementConfiguration<Switch>, ISwitch
18 references to ISwitch
Microsoft.Maui (12)
Handlers\Switch\ISwitchHandler.cs (1)
17 new ISwitch VirtualView { get; }
Handlers\Switch\SwitchHandler.cs (7)
18 public static IPropertyMapper<ISwitch, ISwitchHandler> Mapper = new PropertyMapper<ISwitch, ISwitchHandler>(ViewHandler.ViewMapper) 20 [nameof(ISwitch.IsOn)] = MapIsOn, 21 [nameof(ISwitch.ThumbColor)] = MapThumbColor, 22 [nameof(ISwitch.TrackColor)] = MapTrackColor, 25 public static CommandMapper<ISwitch, ISwitchHandler> CommandMapper = new(ViewCommandMapper) 43 ISwitch ISwitchHandler.VirtualView => VirtualView;
Handlers\Switch\SwitchHandler.Standard.cs (4)
5 public partial class SwitchHandler : ViewHandler<ISwitch, object> 9 public static void MapIsOn(ISwitchHandler handler, ISwitch view) { } 10 public static void MapTrackColor(ISwitchHandler handler, ISwitch view) { } 11 public static void MapThumbColor(ISwitchHandler handler, ISwitch view) { }
Microsoft.Maui.Controls (6)
Switch\Switch.cs (5)
21 ((IView)bindable)?.Handler?.UpdateValue(nameof(ISwitch.TrackColor)); 29 ((IView)bindable)?.Handler?.UpdateValue(nameof(ISwitch.TrackColor)); 87 Handler?.UpdateValue(nameof(ISwitch.IsOn)); 90 Color ISwitch.TrackColor 105 bool ISwitch.IsOn
ViewExtensions.cs (1)
408 else if (element is ISwitch sw)