public SectionTransition( Section contents )
		{
			this.InitializeComponent();

            Exiting = false;
            contents.Cleanup();
            LayoutRoot.Children.Add(contents);
            contents.ChangeParents += new EventHandler(onContentsChangeParents);

            //Enter = (Storyboard)FindResource("Enter");
            //Exit = (Storyboard)FindResource("Exit");
            //Exit.Completed += new EventHandler(onClosed);
            //Enter.Completed += new EventHandler(onEntered);
            Loaded += new RoutedEventHandler(onLoaded);

            RenderTransform = new TranslateTransform( 0, -500 );

//            translate.BeginAnimation(TranslateTransform3D.OffsetZProperty, daz);
		}
示例#2
0
 public NavItem(string label, Section content)
 {
     Initialize();
     Label.Text = label;
     Content = content;
 }