public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Common;component/UserNotificationTemplateUC.xaml", UriKind.Relative)); this.LayoutRoot = (Grid)base.FindName("LayoutRoot"); this.gridInner = (Grid)base.FindName("gridInner"); this.mainUserImagePlaceholder = (Ellipse)base.FindName("mainUserImagePlaceholder"); this.mainUserImage = (Image)base.FindName("mainUserImage"); this.imageIcon = (Image)base.FindName("imageIcon"); this.textBlockHeader = (TextBlock)base.FindName("textBlockHeader"); this.canvasAdditionalUserImages = (Canvas)base.FindName("canvasAdditionalUserImages"); this.rect1 = (Ellipse)base.FindName("rect1"); this.image1 = (Image)base.FindName("image1"); this.rect2 = (Ellipse)base.FindName("rect2"); this.image2 = (Image)base.FindName("image2"); this.rect3 = (Ellipse)base.FindName("rect3"); this.image3 = (Image)base.FindName("image3"); this.rect4 = (Ellipse)base.FindName("rect4"); this.image4 = (Image)base.FindName("image4"); this.rect5 = (Ellipse)base.FindName("rect5"); this.image5 = (Image)base.FindName("image5"); this.textBlockDate = (TextBlock)base.FindName("textBlockDate"); this.imageThumb = (Image)base.FindName("imageThumb"); this.ucEarlierReplies = (TextSeparatorUC)base.FindName("ucEarlierReplies"); }
private UCItem CreateCommentsCountItem() { this._commentsCountSeparatorUC = new TextSeparatorUC() { Text = this.GetTextForCommentsCount() }; this._commentsCountItem = new UCItem(480.0, new Thickness(), (Func <UserControlVirtualizable>)(() => (UserControlVirtualizable)this._commentsCountSeparatorUC), (Func <double>)(() => 56.0), (Action <UserControlVirtualizable>)null, 0.0, false); SocialDataManager.Instance.UpdateCommentsCount(this._ownerId, this._postId, this._runningCountOfComments); return(this._commentsCountItem); }
public static VirtualizableItemBase CreateCommentsCountItem(double width, Func <string> getText, double topMargin = 0.0, SolidColorBrush background = null) { TextSeparatorUC commentsCountSeparatorUC = new TextSeparatorUC() { Text = getText() }; if (background != null) { commentsCountSeparatorUC.gridViewedFeedback.Background = (Brush)background; } return((VirtualizableItemBase) new UCItem(480.0, new Thickness(0.0, topMargin, 0.0, 0.0), (Func <UserControlVirtualizable>)(() => (UserControlVirtualizable)commentsCountSeparatorUC), (Func <double>)(() => 56.0), (Action <UserControlVirtualizable>)null, 0.0, false)); }