internal void ShowAvatar()
 {
     this.Avatar.Fill = new ImageBrush()
     {
         ImageSource = new BitmapImage(new Uri(AvartarHelper.GetLarge(Item.Author.AvatarUrl))),
         Stretch     = Stretch.Fill,
     };
 }
Ejemplo n.º 2
0
 internal void ShowAvatar()
 {
     Avatar.Fill = new ImageBrush()
     {
         ImageSource = new BitmapImage(new Uri(AvartarHelper.GetLarge(_item.ImageUrl))),
         Stretch     = Stretch.Fill
     };
     Avatar.Opacity = 1;
 }
Ejemplo n.º 3
0
 private void SetAvatar()
 {
     Avatar.Fill = new ImageBrush()
     {
         ImageSource = new BitmapImage(new Uri(AvartarHelper.GetLarge(_item.AvatarUrl))),
         Stretch     = Stretch.Fill
     };
     Avatar.Opacity = 1;
 }
Ejemplo n.º 4
0
 internal void ShowAvator()
 {
     this.Avator.Fill = new ImageBrush()
     {
         ImageSource = new BitmapImage(new Uri(AvartarHelper.GetLarge(_item.Creator.AvatarUrl))),
         Stretch     = Stretch.Fill,
     };
     this.Avator.Opacity = 1;
 }
 internal void ShowAvatar()
 {
     Avator.Fill = new ImageBrush()
     {
         ImageSource = new BitmapImage(new Uri(AvartarHelper.GetLarge(_item.Author.AvatarUrl))),
         Stretch     = Stretch.Fill,
     };
     Avator.Opacity    = 1;
     Avator.Visibility = Visibility.Visible;
 }
        internal void ShowAvatar()
        {
            if (_item.Actors == null || _item.Actors.Length == 0)
            {
                return;
            }

            Avatar.Fill = new ImageBrush()
            {
                ImageSource = new BitmapImage(new Uri(AvartarHelper.GetLarge(_item.Actors[0].AvatarUrl))),
                Stretch     = Stretch.Fill
            };
            Avatar.Opacity = 1;
        }
Ejemplo n.º 7
0
        internal void ShowAvatar()
        {
            if (_item.Actor == null)
            {
                this.Avatar.Opacity = 0;
                return;
            }

            this.Avatar.Fill = new ImageBrush()
            {
                ImageSource = new BitmapImage(new Uri(AvartarHelper.GetLarge(_item.Actor.AvatarUrl))),
                Stretch     = Stretch.Fill
            };
            this.Avatar.Opacity = 1;
        }
        internal void ShowAnswer()
        {
            if (false == String.IsNullOrEmpty(this._item.Excerpt))
            {
                this.Avatar.Fill = new ImageBrush()
                {
                    ImageSource = new BitmapImage(new Uri(AvartarHelper.GetLarge(this._item.Author.AvatarUrl))),
                    Stretch     = Stretch.Fill
                };

                this.VoteCount.Text = Utility.Instance.GetEasyInt32(this._item.VoteupCount);

                this.Excerpt.Text = this._item.Excerpt;

                this.AnswerContainer.Visibility = Visibility.Visible;
            }
        }
Ejemplo n.º 9
0
        internal void ShowAvatar()
        {
            if (String.IsNullOrEmpty(_item.ImageUrl))
            {
                this.Avatar.Visibility = Visibility.Collapsed;
                return;
            }

            this.Avatar.Visibility = Visibility.Visible;

            this.Avatar.Source = new BitmapImage
            {
                UriSource = new Uri(AvartarHelper.GetLarge(_item.ImageUrl))
            };

            this.Avatar.Opacity = 1;
        }