Пример #1
0
 public TouchView()
 {
     _visualManager = new TouchVisualManager(Device.iOS);
     StateChanged  += (sender, args) => ForceStateChanged();
     if (Device.RuntimePlatform == Device.iOS)
     {
         GestureRecognizers.Add(new TapGestureRecognizer
         {
             Command = new Command(() => _visualManager.OnTapped(this))
         });
     }
 }
Пример #2
0
 public TouchEff() : base($"{nameof(TouchEffect)}.{nameof(TouchEff)}")
 {
     _visualManager = new TouchVisualManager();
     StateChanged  += (sender, args) => ForceUpdateState();
 }