public LineLiveCommentViewModel(LineLiveSitePlugin.ILineLiveItem item, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options) : this(metadata, methods, connectionStatus, options) { var comment = item; _message = comment; _nameItems = Common.MessagePartFactory.CreateMessageItems(comment.DisplayName); MessageItems = comment.CommentItems; Thumbnail = new Common.MessageImage() { Url = comment.UserIconUrl, Height = 40,//_optionsにcolumnの幅を動的に入れて、ここで反映させたい。propertyChangedはどうやって発生させるか Width = 40, }; Id = null; PostTime = comment.PostedAt.ToString("HH:mm:ss"); }
public LineLiveCommentViewModel(LineLiveSitePlugin.ILineLiveItem item, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options) : this(metadata, methods, connectionStatus, options) { var comment = item; _message = comment; _nameItems = comment.NameItems; MessageItems = comment.CommentItems; Thumbnail = null; //Thumbnail = new Common.MessageImage //{ // Url = comment.UserIconUrl, // Alt = "", // Height = 40,//_optionsにcolumnの幅を動的に入れて、ここで反映させたい。propertyChangedはどうやって発生させるか // Width = 40, //}; Id = null; PostTime = comment.PostTime; }