コード例 #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"); });
        }
コード例 #2
0
        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"); });
        }
コード例 #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"); });
        }