private void CreateFirstLinePanel()
        {
            double num          = 0.0;
            Border postTypeIcon = this.GetPostTypeIcon();

            if (postTypeIcon != null)
            {
                num += UserOrGroupHeaderItem.GetElementTotalWidth((FrameworkElement)postTypeIcon);
            }
            TextBlock textName = new TextBlock()
            {
                Text       = this._isGroupPost ? this._group.name : this._user.Name,
                FontSize   = 25.3,
                Foreground = (Brush)(Application.Current.Resources["PhoneDarkBlueBrush"] as SolidColorBrush)
            };
            double maxWidth = this.Width - (92.0 + (this._moreOptionsTapCallback != null ? 68.0 : 16.0) + num);

            textName.CorrectText(maxWidth);
            Canvas.SetLeft((UIElement)textName, 92.0);
            Canvas.SetTop((UIElement)textName, 17.0);
            this.Children.Add((FrameworkElement)textName);
            if (postTypeIcon == null)
            {
                return;
            }
            Canvas.SetLeft((UIElement)postTypeIcon, 92.0 + textName.ActualWidth);
            Canvas.SetTop((UIElement)postTypeIcon, 17.0);
            this.Children.Add((FrameworkElement)postTypeIcon);
        }
        private void CreateSecondLinePanel()
        {
            double num = 0.0;
            Border postSourceTypeIcon = this.GetPostSourceTypeIcon();

            if (postSourceTypeIcon != null)
            {
                num += UserOrGroupHeaderItem.GetElementTotalWidth((FrameworkElement)postSourceTypeIcon);
            }
            string    subtitleText = this.GetSubtitleText();
            TextBlock textBlock    = new TextBlock();

            textBlock.Text                 = subtitleText;
            textBlock.FontSize             = 20.0;
            textBlock.LineStackingStrategy = LineStackingStrategy.BlockLineHeight;
            textBlock.LineHeight           = 26.0;
            SolidColorBrush solidColorBrush = Application.Current.Resources["PhoneCaptionGrayBrush"] as SolidColorBrush;

            textBlock.Foreground = (Brush)solidColorBrush;
            TextBlock textName = textBlock;
            double    maxWidth = this.Width - (92.0 + (this._moreOptionsTapCallback != null ? 68.0 : 16.0) + num);

            textName.CorrectText(maxWidth);
            Canvas.SetLeft((UIElement)textName, 92.0);
            Canvas.SetTop((UIElement)textName, 48.0);
            this.Children.Add((FrameworkElement)textName);
            if (postSourceTypeIcon == null)
            {
                return;
            }
            Canvas.SetLeft((UIElement)postSourceTypeIcon, 92.0 + textName.ActualWidth);
            Canvas.SetTop((UIElement)postSourceTypeIcon, 48.0);
            this.Children.Add((FrameworkElement)postSourceTypeIcon);
        }