public AttachedPropertiesLayoutPathSample()
        {
            this.InitializeComponent();
            PathStoryboard.Begin();

            SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
        }
Esempio n. 2
0
 private void StartPauseAnimation(object sender, RoutedEventArgs e)
 {
     if (paused)
     {
         PathStoryboard.Resume();
     }
     else
     {
         PathStoryboard.Pause();
     }
     paused = !paused;
 }
Esempio n. 3
0
 public LayoutPathControllerPage()
 {
     this.InitializeComponent();
     SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
     ChildAlignmentCb.ItemsSource  = Enum.GetValues(typeof(ChildAlignment));
     StretchCb.ItemsSource         = Enum.GetValues(typeof(Stretch));
     ItemOrientationCb.ItemsSource = Enum.GetValues(typeof(Orientations));
     StartBehaviorCb.ItemsSource   = Enum.GetValues(typeof(Behaviors));
     EndBehaviorCb.ItemsSource     = Enum.GetValues(typeof(Behaviors));
     Loaded += delegate(object sender, RoutedEventArgs args)
     {
         ChildAlignmentCb.SelectedIndex  = 1;
         ItemOrientationCb.SelectedIndex = 1;
         StartBehaviorCb.SelectedIndex   = 0;
         EndBehaviorCb.SelectedIndex     = 0;
         PathStoryboard.Begin();
     };
 }