private void UpdateBottomPanelVisibility()
        {
            DoubleAnimation da;

            if (UIDofSelectedSlots.Count == 0)
            {
                da = CustomAnimation.GetLeavingScreenAnimation(70, 0, false);
                ViewChanger.Badge = null;
                if (ViewChangerButton.Content.ToString() == "Show all subjects")
                {
                    return;
                }
            }
            else
            {
                da = CustomAnimation.GetEnteringScreenAnimation(0, 70, false);
                ViewChanger.Badge = GetNamesOfCheckedSubject().Length;
                if (BottomPanel.ActualHeight > 0)
                {
                    return;
                }
            }
            BottomPanel.BeginAnimation(HeightProperty, da);
        }
Beispiel #2
0
 private void ViewModel_PropertyChanged(object sender, PropertyChangedEventArgs e) =>
 BottomPanel.BeginAnimation(HeightProperty, new DoubleAnimation()
 {
     To       = ViewModel.TargetHeight,
     Duration = TimeSpan.FromSeconds(0.3)
 });