private TransformTransition CreateChooserOpenedTransition(FilterChooserViewModel chooser)
 {
     ChooserOpenedTransition = new TransformTransition(chooser)
     {
         FromX     = 0.7,
         FromY     = 0.2,
         FromAngle = -30,
         Duration  = TransitionDuration
     };
     return(ChooserOpenedTransition);
 }
 private TransformTransition CreateChooserChosenTransition(FilterChooserViewModel chooser)
 {
     ChooserChosenTransition = new TransformTransition(chooser)
     {
         ToX      = -1,
         Duration = TransitionDuration
     };
     ChooserChosenTransition.ProgressChanged +=
         (target, progress) => { ChooserChosenTransition.Target.Opacity = 1 - progress; };
     return(ChooserChosenTransition);
 }
        public FilterContainerViewModel()
        {
            Style   = new ViewStyle("FilterContainerViewStyle");
            Chooser = new FilterChooserViewModel();
            Chooser.PropertyChanged += OnChooserPropertyChanged;

            Pointing.IsEnabled = true;

            SwipeBehaviour = new FilterSwipeBehaviour();
            Behaviours.Add(SwipeBehaviour);

            CreateChooserLoadedTransition(Chooser);
        }
 private TransformTransition CreateChooserLoadedTransition(FilterChooserViewModel chooser)
 {
     ChooserLoadedTransition = new TransformTransition(chooser)
     {
         FromX     = 1.2,
         FromY     = -0.2,
         FromAngle = -50,
         ToX       = 0.7,
         ToY       = 0.2,
         ToAngle   = -30,
         Duration  = TransitionDuration
     };
     return(ChooserLoadedTransition);
 }