XAML中的Span Name属性。 [英] Span Name Property in XAML.

查看:103
本文介绍了XAML中的Span Name属性。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在XAML中从代码后面设置Span的name属性值。

Ex。

How to set value to name property of Span from code behind in XAML.
Ex.

<span x:Name="ABC" ></Span>





i想要将ABC改为PQR



i want to change "ABC" to "PQR"

推荐答案

嗨Susheel,



你可以通过

Hi Susheel,

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





问候,

Vinoth Kumar J



Regards,
Vinoth Kumar J


这篇关于XAML中的Span Name属性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆