public PostCommentView()
        {
            InitializeComponent();
            this.Language = XmlLanguage.GetLanguage(Thread.CurrentThread.CurrentCulture.Name);

            //Get post from applicationService
            post = PhoneApplicationService.Current.State["selectedPost"] as Post;

            //Set post as datacontext
            this.DataContext = post;

            //verify that we found a valid post. Else go back to post window
            if(post == null)
                NavigationService.GoBack();

            //enable UIelements
            UIState(true);


            //Get name and email from settings
            var loginInfo = LocalStorageHelper.Current.LoginInfo;
            if (loginInfo != null)
            {
                txtEmail.Text = loginInfo.Email;
                txtName.Text = loginInfo.Name;    
            }
        }
 public void Setup(Post post)
 {
     Post = post;
 }