/// <summary> /// Opens the adding category section /// </summary> private void OpenAddingCategorySection(object sender, RoutedEventArgs e) { if (!isAddingCategorySection_Opened) { isAddingCategorySection_Opened = true; AddingCategorySection.BeginAnimation(HeightProperty, openAddingCategorySection); } }
/// <summary> /// Closes the adding category section /// </summary> private void CloseAddingCategorySection(object sender, RoutedEventArgs e) { isAddingCategorySection_Opened = false; AddingCategorySection.BeginAnimation(HeightProperty, closeAddingCategorySection); }