public void OnCellSelected(object sender, CellSelectedEventArgs args) { if (args.Area.IsWithin(Column, Row, Column, Row)) { args.AreaAvailable = IsCellAvailable(args.Model); } }
/// <summary> /// handle click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuFabCellSelected(object sender, CellSelectedEventArgs e) { //get item click index var selectedCellIndex = e.Index; Element.RaiseSelectIndexChanged(selectedCellIndex); //close fab menu _menuFab.Close(); }
public void OnOccupy(object sender, CellSelectedEventArgs args) { if (args.Area.IsWithin(Column, Row, Column, Row)) { Occupied = true; if (args.Model.IsConnecting) { ContainsConnectingGate = true; } } }
private void CollectionControl_CellSelected_1(object sender, CellSelectedEventArgs e) { if (pivot.SelectedIndex == 0) { if (e.Type == CellType.Album) { var pModel = new PhotosViewModel(); pModel.Initialize(e.SelectedItem.Data as PictureAlbum, cts.Token); ViewModels[0] = pModel; ((pivot.SelectedItem as PivotItem).Content as CollectionControl).Initialize(ViewModels[0]); CreateCompletedAppBar(); } } }
public void OnHighlight(object sender, CellSelectedEventArgs args) { if (args.Area.IsWithin(Column, Row, Column, Row)) { if (!IsCellAvailable(args.Model)) { Background = Brushes.LightCoral; } else { Background = Brushes.LightBlue; } } }
void photosCollectionControl_CellSelected(object myObject, CellSelectedEventArgs myArgs) { if (selecting) { switch (myArgs.Type) { case CellType.Album: break; case CellType.Photo: break; default: break; } ListBox l = new ListBox(); } switch (myArgs.Type) { case CellType.Album: PhotosCollectionViewModel = new PhotosViewModel(); PhotosCollectionViewModel.Initialize(myArgs.SelectedItem.Data as PictureAlbum, cts.Token, false); photosCollectionControl.Initialize(PhotosCollectionViewModel); deep++; break; case CellType.Photo: SelectedImage = (myArgs.SelectedItem.Data as Picture); NavigationService.Navigate(new Uri("/PhotoViewerPage.xaml", UriKind.Relative)); break; default: break; } }
private void CollectionControl_CellSelected_2(object myObject, CellSelectedEventArgs myArgs) { }
void photosCollectionControl_CellSelected(object myObject, CellSelectedEventArgs myArgs) { if (selecting) { switch (myArgs.Type) { case CellType.Album: break; case CellType.Photo: break; default: break; } ListBox l = new ListBox(); } switch (myArgs.Type) { case CellType.Album: PhotosCollectionViewModel = new PhotosViewModel(); PhotosCollectionViewModel.Initialize(myArgs.SelectedItem.Data as PictureAlbum,cts.Token, false ); photosCollectionControl.Initialize(PhotosCollectionViewModel); deep++; break; case CellType.Photo: SelectedImage = (myArgs.SelectedItem.Data as Picture); NavigationService.Navigate(new Uri("/PhotoViewerPage.xaml", UriKind.Relative)); break; default: break; } }