I am attempting to add a RadSyntaxEditorElement to Telerik Chat UI for Winforms using 2023.3.1010 Trial.
I receive a null reference exception in RadSyntaxEditorElement.cs > SyncZoomComboText line 1312. It says base.Dispatcher = null. (see attached image).
Is it possible to add the SyntaxEditorElement to chat? If, not do you have any other recommendations for display code in chat?
Here is my test code modified from the examples found on your site.
public class MyCodeMessageItemElement : TextMessageItemElement
{
protected override Type ThemeEffectiveType
{
get
{
return typeof(TextMessageItemElement);
}
}
protected override LightVisualElement CreateMainMessageElement()
{
return new CustomCodeMessageBubbleElement();
}
public override void Synchronize()
{
base.Synchronize();
CustomCodeMessageBubbleElement bubble = this.MainMessageElement as CustomCodeMessageBubbleElement;
bubble.DrawText = false;
}
}
public class CustomCodeMessageBubbleElement : ChatMessageBubbleElement
{
protected override Type ThemeEffectiveType
{
get
{
return typeof(ChatMessageBubbleElement);
}
}
//RadTextBoxControlElement textBoxElement;
RadSyntaxEditor radSyntaxEditor;
RadSyntaxEditorElement radSyntaxEditorElement;
public RadSyntaxEditor SyntaxEditor1
{
get
{
return this.radSyntaxEditor;
}
}
protected override void CreateChildElements()
{
base.CreateChildElements();
radSyntaxEditorElement = new RadSyntaxEditorElement();
radSyntaxEditorElement.ZoomComboBox.Enabled = false;
//radSyntaxEditor.ContextMenuOpening += textBoxElement_ContextMenuOpening;
this.Children.Add(radSyntaxEditorElement);
}
//private void textBoxElement_ContextMenuOpening(object sender, TreeBoxContextMenuOpeningEventArgs e)
//{
// foreach (RadItem item in e.ContextMenu.Items)
// {
// if (item.Text.Contains("&Copy"))
// {
// item.Visibility = ElementVisibility.Visible;
// }
// else
// {
// item.Visibility = ElementVisibility.Collapsed;
// }
// }
//}
public override string Text
{
get
{
return base.Text;
}
set
{
base.Text = value;
this.radSyntaxEditor.Text = value;
}
}
}
Hi, new to telerik, we're evaluating rad chat for an internal chat piece to our app.
i'm looking for recommendations for what control to pair with the radchat control for the left side of the chat program. the one where you pick who you're talking to currently. think any old messenger app, conversations on the left, and the main chat with a person on the right.
what would you guys use for that? I only need it to show the person's name, the person that's selected and something like a dot or overlay showing conversations you haven't seen yet. Like XYZ sent you a chat and you haven't looked at it yet so XYZ's entry shows a dot etc for a missed chat.
this is all winforms.
Thanks!
Hi, i'm evaluating radchat for winforms for a messenger project i have to do.
does it natively support multiple authors that are separate from each other? Think a typical messenger like face book messenger etc. you have a list of people you're talking to on the left and the current person you're talking to on the right.
does rad chat support that natively? if not are there any samples or how too's that show this?
i'd like it to know when a different author is posted to the control and put it in the correct person on the left and light up etc showing it's got a new message.
i've tried adding multiple authors to it with different messages but it just puts them all in the same window with different names above them.
i really need them to be separated out into their own conversations.
Thanks!
hello
I need to create whatsapp ui that can send files and voice notes to other client
As there any way to do it with chat ui ??
Hello,
I am trying to figure out how to make the Suggested Actions not scroll off of the screen in Windows forms.
Can you help show how I can get these to be posted vertical?
Thanks -Tim
How to line up english message in chat bubble
Hello, ChatBubble has problem.
ex)
(e.ItemElement as TextMessageItemElement).MainMessageElement.TextAlignment = ContentAlignment.MiddleLeft;
(e.ItemElement as TextMessageItemElement).MainMessageElement.UseCompatibleTextRendering = false;
When UseCompatibleTextRendering's value is false, english Line spacing fails.
But another language line spacing successes.
So, How to line spacing english? I want to solve it.
Thanks.
in c# winforms
Conversational UI, Chat, i can't add user to chatting with them ?
hello i'm using radchat on my project and i have two questions
one
I've read how to sending a image but i'm not sure how i can send other files like Audio,video...
ChatMediaMessage mediaMessage = new ChatMediaMessage(img, new Size(300, 200), null, Chat_Box.Author, DateTime.Now);
two
and also are some of them like video types going to have a preview in the radchat like the image or not
if not how i can access the file that radchat is showing to execute it example like this Process.Start("C:\\");
thank you
Hello, how can I choose a text message and copy it. The attribute CanFocus = True but I cannot select the text message.
Please let me know how to solve my problem. Tks
Regarding my last post about Bot Framework 4.0. What I am really try to do is get Adaptive Cards JSON to show as a card in the chat viewer it doesn't need to be through the Bot Framework.
Thanks -Tim