Beispiel #1
0
        public ResourceSwipeItemsGallery()
        {
            InitializeComponent();
            BindingContext = new SwipeViewGalleryViewModel();

            MessagingCenter.Subscribe <SwipeViewGalleryViewModel>(this, "favourite", sender => { DisplayAlert("SwipeView", "Favourite", "Ok"); });
            MessagingCenter.Subscribe <SwipeViewGalleryViewModel>(this, "delete", sender => { DisplayAlert("SwipeView", "Delete", "Ok"); });
        }
        public SwipeViewVisualStatesCollectionGallery()
        {
            InitializeComponent();
            BindingContext = new SwipeViewGalleryViewModel();

            MessagingCenter.Subscribe <SwipeViewGalleryViewModel>(this, "favourite", sender => { DisplayAlert("SwipeView", "Favourite", "Ok"); });
            MessagingCenter.Subscribe <SwipeViewGalleryViewModel>(this, "delete", sender => { DisplayAlert("SwipeView", "Delete", "Ok"); });
        }
Beispiel #3
0
        public SwipeViewGestureRecognizerGallery()
        {
            InitializeComponent();
            BindingContext = new SwipeViewGalleryViewModel();

            MessagingCenter.Subscribe <SwipeViewGalleryViewModel>(this, "favourite", sender => { DisplayAlert("SwipeView", "Favourite", "Ok"); });
            MessagingCenter.Subscribe <SwipeViewGalleryViewModel>(this, "delete", sender => { DisplayAlert("SwipeView", "Delete", "Ok"); });
            MessagingCenter.Subscribe <SwipeViewGalleryViewModel>(this, "tap", sender => { DisplayAlert("SwipeView", "TapGestureRecognizer", "Ok"); });
        }