protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            NoteCreateOrEditViewModel viewModel = new NoteCreateOrEditViewModel(0);
            this.DataContext = viewModel;
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (NavigationContext.QueryString.ContainsKey("id"))
            {
                string idQueryString = NavigationContext.QueryString["id"];
                int id = 0;
                if (!Int32.TryParse(idQueryString, out id))
                {
                    throw new ArgumentException("id is not valid value!");
                }

                NoteCreateOrEditViewModel viewModel = new NoteCreateOrEditViewModel(id);
                this.DataContext = viewModel;
            }
            else
            {
                throw new ArgumentNullException("id must be provided to a EditView");
            }
        }