Edit text [BlendforVS_Blend4]
In Blend for Visual Studio 2012, you can edit text that is displayed in text controls directly on the artboard.
注意事項 |
---|
You can edit the text that is displayed in any control that contains text, such as a Button or ComboBoxItem. However, some text controls do not allow for rich text editing like the RichTextBox or TextBlock control do. |
To edit text
Select the text object that you want to edit, by using either the Selection tool or the Direct Selection tool , or by selecting the text object under Objects and Timeline.
Do one of the following:
Double-click the text control on the artboard, to set the cursor in the text box.
Right-click the text box and then click Edit Text.
Press F2.
Blend enters text-editing mode for the control.
When in text-editing mode, you can set formatting properties under Text in the Properties panel, and you can type text directly into the control. You can also copy content from another source (such as a web page or Microsoft Word document) and paste it into the text control. If you copy rich text and other objects such as images, the formatting and objects will be preserved if you are pasting into a RichTextBox, TextBlock, or FlowDocumentScrollViewer control.
秘訣 |
---|
You can also let users of your application modify the text that is contained in certain types of text controls (TextBox, RichTextBox, PasswordBox) in the application, or you can make the text boxes read-only. You can also specify whether users can undo their edits. For more information, see Make text editable or read-only. |