Exemplo n.º 1
0
        /// <summary>
        /// The methods provided in this section are simply used to allow
        /// NavigationHelper to respond to the page's navigation methods.
        /// <para>
        /// Page specific logic should be placed in event handlers for the
        /// <see cref="NavigationHelper.LoadState"/>
        /// and <see cref="NavigationHelper.SaveState"/>.
        /// The navigation Parameter is available in the LoadState method
        /// in addition to page state preserved during an earlier session.
        /// </para>
        /// </summary>
        /// <param name="e">Provides data for navigation methods and event
        /// handlers that cannot cancel the navigation request.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var messageData = new UserStoryTypeViewModel();

            ItemListView.ItemsSource = messageData.UserStoryTypes;
            //ItemListView.SelectedIndex = 0;
        }
        public CreateUserStoryPage()
        {
            this.InitializeComponent();

            var cmbtype = new UserStoryTypeViewModel();

            cmb_type.ItemsSource = cmbtype.UserStoryTypes;


            var cmbsprint = new SprintViewModel();

            cmb_sprint.ItemsSource = cmbsprint.Sprints;

            var cmbstatus = new ScrumStageViewModel();

            cmb_status.ItemsSource = cmbstatus.ScrumStages;

            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }