This question is locked. New answers and comments are not allowed.
I have created a RibbonView from the example on your site, and added it to a user control. The naming conventions match the example exactly.
I want to programmatically (using C#) add this control to a grid and have it work with an RTB that is also programmatically added to the grid. Currently I cannot get them to talk to each other. I would also like to be able to add multiple RTB's to the page and have the control switch dynamically. I've seen a demo written for WPF, but as the RibbonView is not within the same context I don't know how to adapt it.
My example C# is as follows:
//define an int to be used as a flag if the ribbon has been added.
I want to programmatically (using C#) add this control to a grid and have it work with an RTB that is also programmatically added to the grid. Currently I cannot get them to talk to each other. I would also like to be able to add multiple RTB's to the page and have the control switch dynamically. I've seen a demo written for WPF, but as the RibbonView is not within the same context I don't know how to adapt it.
My example C# is as follows:
//define an int to be used as a flag if the ribbon has been added.
private int editorLoaded = 0;
{
while (sNodeName == "Tab")
if (editorLoaded == 0)
{ editorLoaded = 1;
UI.Controls.xRichTextRibbon xRibbon = new UI.Controls.xRichTextRibbon();
xRibbon.Margin = new Thickness(15, 15, 15, 15);
grdEdit.Children.Add(xRibbon);
}
RadRichTextBox editor = new RadRichTextBox();
editor.Document.LayoutMode = Telerik.Windows.Documents.Model.DocumentLayoutMode.Flow;
editor.Height = 300;
editor.Margin = new Thickness(15, 115, 15, 15);
editor.VerticalAlignment = System.Windows.VerticalAlignment.Top;
editor.IsReadOnly = false;
grdEdit.Children.Add(editor);
}