This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi , I am using the HTMLEditor but the problem is its taking too much space. Is there a way that i can use the controls on the same line as opposed to 2 lines its split as?
Please let me know.
Thanks |
|
|
Hello Here you will need to create your own style to apply to the StandardRichTextEditorToolBar. This will allow you to put all the controls on a single line, and also arrange them however you like. First choose which of the 6 themes you want to use (OfficeBlue, OfficeSilver, OfficeBlack, Alloy, AlloyLight or Generic). Go to the Silverlight page that will be hosting the HTML editor, and include the theme as a merged dictionary. Now open the file that contains the theme you have chosen and search for "HtmlEditorToolBarStyle". Copy this Style and paste it into the ResourceDictionary of the Silverlight page containing the HTML editor. The control template within this style has a few nested StackPanels. Modify the control arrangement by putting them all into the same StackPanel. Now change the x:Name of the style and apply it to the StandardRichTextToolBar. Let me know if you have any troubles with any of these steps. - Jason
|
|
|
Hi Jason, Do you happen to have a sample for this scenario?
Thanks Sathish.K |
|
|
Hello Sathish I have written a blog post about creating custom HTML editor toolbar styles which can be found here: I have put a link near the bottom of the blog post for downloading the sample. You will need to include a reference to your copy of SilverlightElements.dll. Let me know if you have any questions. - Jason |
|