Click here to Skip to main content
16,004,647 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How to set value to name property of Span from code behind in XAML.
Ex.
<span x:Name="ABC" ></Span>


i want to change "ABC" to "PQR"
Posted
Comments
govardhan4u 24-May-13 7:17am    
access the property as entity in xaml.cs file
[no name] 24-May-13 7:28am    
Thanks for help
but can u give me some example.
[no name] 24-May-13 9:34am    
What you are asking makes no sense. You want to change the name of controls at runtime? Why?

1 solution

Hi Susheel,

You could get the Span element via
C#
Span span = LogicalTreeHelper.FindLogicalNode(doc, "ABC") as Span; //doc is name of The FlowDocument


Regards,
Vinoth Kumar J
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900