Esempio n. 1
0
        protected virtual ChatMessageAvatarElement CreateAvatarElement()
        {
            ChatMessageAvatarElement messageAvatarElement = new ChatMessageAvatarElement();

            messageAvatarElement.Margin        = new Padding(5, 0, 5, 0);
            messageAvatarElement.SmoothingMode = SmoothingMode.HighQuality;
            messageAvatarElement.ImageLayout   = ImageLayout.Stretch;
            messageAvatarElement.Shape         = (ElementShape) new CircleShape();
            return(messageAvatarElement);
        }
Esempio n. 2
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.avatarPicture      = this.CreateAvatarElement();
     this.nameLabel          = this.CreateNameLabel();
     this.statusLabel        = this.CreateStatusLabel();
     this.mainMessageElement = this.CreateMainMessageElement();
     this.Children.Add((RadElement)this.avatarPicture);
     this.Children.Add((RadElement)this.nameLabel);
     this.Children.Add((RadElement)this.statusLabel);
     this.Children.Add((RadElement)this.mainMessageElement);
     int num1 = (int)this.avatarPicture.BindProperty(ChatMessageAvatarElement.IsOwnMessageProperty, (RadObject)this, BaseChatItemElement.IsOwnMessageProperty, PropertyBindingOptions.OneWay);
     int num2 = (int)this.nameLabel.BindProperty(ChatMessageNameElement.IsOwnMessageProperty, (RadObject)this, BaseChatItemElement.IsOwnMessageProperty, PropertyBindingOptions.OneWay);
     int num3 = (int)this.statusLabel.BindProperty(ChatMessageStatusElement.IsOwnMessageProperty, (RadObject)this, BaseChatItemElement.IsOwnMessageProperty, PropertyBindingOptions.OneWay);
 }