This is a migrated thread and some comments may be shown as answers.

RichTextBox - When editing XAML, disable interactivity and hide the design tab

1 Answer 81 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
C
Top achievements
Rank 1
C asked on 19 Nov 2014, 06:46 PM
How to hide the design tab in Visual Studio and show only the XAML tab when editing a window containing a RichTextBox control or RadToolBar?

How to disable the interactivity of the editor so that normal keyboard navigation in the XAML source code does not move controls on the WPF window?

This slows down the editing considerably and introduces many small unwanted changes in the WPF window controls layout.

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 23 Nov 2014, 10:30 AM
Hello,

Straight to your questions:

How to hide the design tab in Visual Studio and show only the XAML tab when editing a window containing a RichTextBox control or RadToolBar?

Choose a file in your project through the Solution Explorer in Visual Studio. Right click on it and choose "Open with...". From the opened window choose "Source Code (Text) Editor" or "XML (Text) Editor" and click on the "Set as Default" button. Next time when you try to open the same file the Designer won't be opened. Sometimes you need to restart Visual Studio in order to have the change applied. If you want to go back to the default Visual Studio's behavior, just repeat the described steps but choose "XAML UI Designer".

If you have switched off the designer, if you want to open it, you need to right click on the file and choose "View Designer".

How to disable the interactivity of the editor so that normal keyboard navigation in the XAML source code does not move controls on the WPF window?

I am not sure what you mean by this. Please note that it is important where the focus is - in the designer or in the source code editor. If you do not want to have the SmartTagPanes opened (check the attached screenshots) which are part of our design time support, the easiest way that comes to my mind is to reference our binaries from a folder where only the needed binaries are copied and not from the telerik installation where you have the design binaries also.


Regards,
Sia
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
RichTextBox
Asked by
C
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or