示例#1
0
 public void CollapseSlideInPane()
 {
     TasksListView.SelectedIndex = -1;
     //TasksListView.Margin = new Thickness(10, 10, 10, 0);
     TasksListView.SetValue(Grid.ColumnSpanProperty, 2);
     //EmptyAddTaskDisplayPanel.SetValue(Grid.ColumnSpanProperty, 2);
     TopPanel.SetValue(Grid.ColumnSpanProperty, 2);
     SlideInPane.Visibility = Visibility.Collapsed;
 }
示例#2
0
 private void ShowSlideInPane()
 {
     //TasksListView.Margin = new Thickness(0, 0, 0, 0);
     TasksListView.SetValue(Grid.ColumnSpanProperty, 1);
     //EmptyAddTaskDisplayPanel.SetValue(Grid.ColumnSpanProperty, 1);
     if (tasks.Count > 0)
     {
         TopPanel.SetValue(Grid.ColumnSpanProperty, 1);
     }
     SlideInPane.Visibility = Visibility.Visible;
 }