Exemplo n.º 1
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.scrollLeftElement  = this.CreateScrollLeftElement();
     this.scrollRightElement = this.CreateScrollRightElement();
     this.Children.Add((RadElement)this.scrollLeftElement);
     this.Children.Add((RadElement)this.scrollRightElement);
 }
Exemplo n.º 2
0
        protected virtual ChatToolbarScrollLeftButtonElement CreateScrollLeftElement()
        {
            ChatToolbarScrollLeftButtonElement leftButtonElement = new ChatToolbarScrollLeftButtonElement();

            leftButtonElement.CaptureOnMouseDown = true;
            leftButtonElement.DrawFill           = true;
            leftButtonElement.GradientStyle      = GradientStyles.Solid;
            leftButtonElement.BackColor          = Color.FromArgb(128, Color.Gray);
            leftButtonElement.Text       = "❮";
            leftButtonElement.Visibility = ElementVisibility.Collapsed;
            return(leftButtonElement);
        }