예제 #1
0
        protected override void CreateChildItems(Telerik.WinControls.RadElement parent)
        {
            base.CreateChildItems(parent);

            tbi      = new RadTextBoxItem(mtb);
            mtb.Font = this.Font;
            this.TextBoxElement.Children.Add(tbi);
        }
예제 #2
0
        protected override void CreateChildItems(Telerik.WinControls.RadElement parent)
        {
            base.CreateChildItems(parent);

            realTB   = this.SpinElement.TextBoxItem;
            tbi      = new RadTextBoxItem(mtb);
            mtb.Font = this.Font;
        }
예제 #3
0
        protected override void CreateChildItems(Telerik.WinControls.RadElement parent)
        {
            base.CreateChildItems(parent);

            this.spellChecker        = new RadSpellChecker();
            this.controlSpellChecker = this.spellChecker.GetControlSpellChecker(typeof(RadRichTextBox));
            this.controlSpellChecker.CurrentControl = this;
        }
예제 #4
0
        private void ChatElement_CardActionClicked(object sender, CardActionEventArgs e)
        {
            Telerik.WinControls.RadElement element = sender as Telerik.WinControls.RadElement;
            if (element != null)
            {
                var parent = element.FindAncestor <CarouselMessageItemElement>();
                if (parent != null && parent.Parent != null)
                {
                    if (parent.Parent.Children.IndexOf(parent) != parent.Parent.Children.Count - 1)
                    {
                        return;
                    }
                }
            }

            this.radChat1.ChatElement.AddMessage(new ChatTextMessage(e.Action.Value.ToString(), this.ClientAuthor, DateTime.Now));

            this.SendMessageToServer(e.Action.Value.ToString());
        }