コード例 #1
0
        void callback()
        {
            list_PostResourse.ItemsSource = vm.list_PostModel;
            list_Achievement.ItemsSource  = vm.list_AchievementModel;
            foreach (UnloadModel photo in vm.list_UnloadModel)
            {
                Friend_Photo control = new Friend_Photo(client)
                {
                    Describe = photo.Describe, ItemId = photo.ItemId, Name = photo.Name + " "
                };
                control.Margin = new Thickness(5);
                //HubTile hubTile = new HubTile()
                //{
                //    //Source="/Images/Dessert.jpg",
                //    Tag=photo.ItemId,
                //    Title=photo.Name,
                //    Notification=photo.Describe,
                //    DisplayNotification=true,
                //    GroupTag="Food"
                //};


                wp_Photo.Children.Add(control);
            }
        }
コード例 #2
0
        public FriendPage()
        {
            client.GetImageByUserIdCompleted += new EventHandler <GetImageByUserIdCompletedEventArgs>(client_GetImageByUserIdCompleted);
            int userId = (App.Current as App).UserId;

            InitializeComponent();
            vm = new FriendVM(userId,
                              delegate { list_PostResourse.ItemsSource = vm.list_PostModel; },
                              delegate { list_Achievement.ItemsSource = vm.list_AchievementModel; },
                              delegate {
                foreach (UnloadModel photo in vm.list_UnloadModel)
                {
                    Friend_Photo control = new Friend_Photo(client)
                    {
                        ItemId = photo.ItemId, Describe = photo.Describe, Name = photo.Name + " "
                    };
                    control.Margin = new Thickness(5);
                    wp_Photo.Children.Add(control);
                }
            });
            callback();
        }