public NewCategoryPage(CategoriesViewModel viewModel)
 {
     InitializeComponent();
     categoriesViewModel = viewModel;
     BindingContext      = new NewCategoryViewModel()
     {
         CurrentMaxId = categoriesViewModel.GetCurrentMaxId()
     };
 }