xButton.SetText

xButton.SetText ( 

string ObjectName,

string Text )

Example 1

xButton.SetText("xButton1", "Click Here");

Changes the text on the xButton named "xButton1" to "Click Here".

Example 2

xButton.SetText("Sound Toggle Button", "Music On");

Changes the text on the xButton named "Sound Toggle Button" to "Music On".

Example 3

xButton.SetText("xButton1","<TextBlock>Button with <Hyperlink>Hyperlink</Hyperlink></TextBlock>");

This example sets the "xButton1" xButton object text to "Button with Hyperlink" assuming the object has markup enabled. See XML Syntax for more markup examples.

See also:  Related Actions