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

            Pointing.IsEnabled = true;

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

            CreateChooserLoadedTransition(Chooser);
        }
コード例 #4
0
 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);
 }