Good day Telerik Team,
I am currently using your new "RadControls for Silverlight Q2 2011 Demos", and it works fine.
When i tried to put radrichtextbox inside a new ChildWindow and I set the "IsReadOnly" property to true:
and I create an instance of this childwindow:
private void Doc_Preview(object sender, System.Windows.RoutedEventArgs e)
{
Preview prev = new Preview();
RadDocument doc = new RadDocument();
this.radRichTextBox1.Document.Selection.SelectAll();
doc = this.radRichTextBox1.Document.Selection.CreateDocumentFromSelection();
radRichTextBox1.Document.Selection.Clear();
doc.CaretPosition.MoveToFirstPositionInDocument();
prev.rtbPrev.Document = doc;
prev.rtbPrev.Document.Sections.First.Headers = radRichTextBox1.Document.Sections.First.Headers;
prev.rtbPrev.Document.Sections.First.Footers = radRichTextBox1.Document.Sections.First.Footers;
prev.rtbPrev.Document.SectionDefaultPageOrientation = radRichTextBox1.Document.Sections.First.PageOrientation;
prev.rtbPrev.Document.SectionDefaultPageMargin = radRichTextBox1.Document.Sections.First.ActualPageMargin;
prev.rtbPrev.LayoutMode = radRichTextBox1.Document.LayoutMode;
prev.rtbPrev.Document.CopyPropertiesFrom(radRichTextBox1.Document);
prev.rtbPrev.ScaleFactor = new Size(0.55, 0.55);
prev.Show();
}
And when I call Doc_Preview() the main screen turns to white, and i lose my control on it.
But when I turn "IsReadOnly" to false the child window will appear and my main page/screen does not freak out.
I also tried this one using your "RadControls for Silverlight Q1", and it works fine even if i turn radrichtextboxs "IsReadOnly" to true.
Is there a way that I can set the property of a radrichtextboxs "IsReadOnly" to true inside a childwindow and I will not lose control of my main screen (using your "RadControls for Silverlight Q2 2011 Demos")?
hoping for your reply,
Aubrey :')
I am currently using your new "RadControls for Silverlight Q2 2011 Demos", and it works fine.
When i tried to put radrichtextbox inside a new ChildWindow and I set the "IsReadOnly" property to true:
<
telerik:RadRichTextBox
Grid.RowSpan
=
"2"
HorizontalAlignment
=
"Stretch"
IsContextMenuEnabled
=
"False"
IsReadOnly
=
"True"
IsSelectionEnabled
=
"False"
IsSelectionMiniToolBarEnabled
=
"False"
IsSpellCheckingEnabled
=
"False"
LayoutMode
=
"Paged"
Margin
=
"0,0,13,29"
x:Name
=
"rtbPrev"
VerticalAlignment
=
"Stretch"
AllowScaling
=
"True"
Style
=
"{StaticResource RadRichTextBoxStyle1}"
IsImageMiniToolBarEnabled
=
"False"
IsInHeaderFooterEditMode
=
"False"
IsFocusable
=
"False"
/>
{
Preview prev = new Preview();
RadDocument doc = new RadDocument();
this.radRichTextBox1.Document.Selection.SelectAll();
doc = this.radRichTextBox1.Document.Selection.CreateDocumentFromSelection();
radRichTextBox1.Document.Selection.Clear();
doc.CaretPosition.MoveToFirstPositionInDocument();
prev.rtbPrev.Document = doc;
prev.rtbPrev.Document.Sections.First.Headers = radRichTextBox1.Document.Sections.First.Headers;
prev.rtbPrev.Document.Sections.First.Footers = radRichTextBox1.Document.Sections.First.Footers;
prev.rtbPrev.Document.SectionDefaultPageOrientation = radRichTextBox1.Document.Sections.First.PageOrientation;
prev.rtbPrev.Document.SectionDefaultPageMargin = radRichTextBox1.Document.Sections.First.ActualPageMargin;
prev.rtbPrev.LayoutMode = radRichTextBox1.Document.LayoutMode;
prev.rtbPrev.Document.CopyPropertiesFrom(radRichTextBox1.Document);
prev.rtbPrev.ScaleFactor = new Size(0.55, 0.55);
prev.Show();
}
But when I turn "IsReadOnly" to false the child window will appear and my main page/screen does not freak out.
I also tried this one using your "RadControls for Silverlight Q1", and it works fine even if i turn radrichtextboxs "IsReadOnly" to true.
Is there a way that I can set the property of a radrichtextboxs "IsReadOnly" to true inside a childwindow and I will not lose control of my main screen (using your "RadControls for Silverlight Q2 2011 Demos")?
hoping for your reply,
Aubrey :')