/// <summary> /// 控件弹出菜单服务 /// </summary> /// <param name="t"></param> /// <param name="act"></param> private void MenuItemClick(Status t, EMenuItemAction act) { if (act == EMenuItemAction.Reply) { Isolated.Set(IsolatedHelper.TargetTweetKey, t); NavigationService.Navigate( new Uri( string.Format("/Tweet/Add.xaml?{0}={1}", AppSetting.AddTweetTypeParameterKey, EAddTweetType.Reply.GetHashCode()), UriKind.Relative)); } else if (act == EMenuItemAction.ReAdd) { Isolated.Set(IsolatedHelper.TargetTweetKey, t); NavigationService.Navigate( new Uri( string.Format("/Tweet/Add.xaml?{0}={1}", AppSetting.AddTweetTypeParameterKey, EAddTweetType.ReAdd.GetHashCode()), UriKind.Relative)); } else if (act == EMenuItemAction.Favorite) { //Dal.Tweet.Instance.AddFavorite(t.Id, // (rs) => // { // (new MessageBoxHelper()).Show("收藏" + (rs ? "成功" : "失败"), "提示", // LayoutRoot); // }); } else if (act == EMenuItemAction.Comment) { Isolated.Set(IsolatedHelper.TargetTweetKey, t); NavigationService.Navigate( new Uri( string.Format("/Tweet/Add.xaml?{0}={1}", AppSetting.AddTweetTypeParameterKey, EAddTweetType.Comment.GetHashCode()), UriKind.Relative)); } }