Beispiel #1
0
        private void TasksList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            TaskModel task = TasksList.SelectedItem as TaskModel;

            if (task != null)
            {
                TitleTxt.Text = task.TaskName;
                bool IsAlreadyFav = UserDB.IsFavouriteTask(task.TaskId, App.CurrentUser);
                if (!IsAlreadyFav)
                {
                    UserDB.AddFavouriteTaskIds(task.TaskId, App.CurrentUser);
                }
                fav = UserDB.GetFavorite(task.TaskId, App.CurrentUser);
                StarBtnDetails.DataContext = fav;
                comments = CommentDB.GetComments(task.TaskId);
                CommentsList.ItemsSource = comments;
                AddButton.Tag            = task.TaskId;
                DetailsFrame.Navigate(typeof(DetailView), task, new SuppressNavigationTransitionInfo());
            }
            double Acutalwidth = this.ActualWidth;

            if (ActualWidth < 700)
            {
                TasksList.Visibility           = Visibility.Collapsed;
                ComboboxPanel.Visibility       = Visibility.Collapsed;
                DetailAndDiscussion.Visibility = Visibility.Visible;
                BackBtn.Visibility             = Visibility.Visible;
            }
            if (ActualWidth >= 700)
            {
                TasksList.Visibility           = Visibility.Visible;
                DetailAndDiscussion.Visibility = Visibility.Visible;
            }
        }
Beispiel #2
0
        private async void OpenScannedImageInDetails()
        {
            DetailsFrame.Navigate(typeof(Views.InkDrawPicturePage), ImageFile);
            // Get the image
            try
            {
                //ScannedImage = await ImageHelper.GetBitmapFromImageAsync(ImageFile);

                // Open it in the details
            }
            catch { }

            // Check if it's an supported Image File
        }