如何解决打开LightBox时将光标设置到WordControlTextArea
我从xaml
和C#
开始,在LightBoxes
方面需要您的帮助。
我想在打开LightBox时将光标直接设置到WordControlTextArea
中。
这是我的代码:
<a:LightBox Id="lbCommentaireEcriture" Type="Information" Width="66%">
<a:LightBox.OnOpen>
var elem = this.FindElement('myArea');
elem.placeholder.Focus();
elem.Select();
</a:LightBox.OnOpen>
<a:LightBox.Content>
<UpdatePanel Id="lightBoxContentPanel">
<a:TextBlock Type="Info">
<e:UserPrivacyMessage ShowSummary="False" LegalContext="FR" />
</a:TextBlock>
<mit:WordControlTextArea Id="myArea" Ref="Data/Texte" Rows="10" Width="100%"/>
</UpdatePanel>
</a:LightBox.Content>
</a:LightBox>
<mit:WordControlTextArea>
具有一个名为“占位符”的属性,可用于将文本写入此标记。
错误消息:
不可能将属性“占位符”设置为null或未定义 参考
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。