问题描述
我的wpf应用程序中有一个第三方编辑器工具,在该工具中,我尝试转到行号"选项.
在转到"行无按钮"上单击,该命令中的命令绑定在VIew模型中,我必须发送行号"
这是我从文本框中得到的.但是第三方编辑器有一个gotoLine(int LineNo)...
方法这是编辑器控件的一部分,所以如何在视图模型中获取编辑器控件的对象.或者我在视图模型中获取控件的对象来做错了...
请告知
i have a third party editor tool in my wpf application where i am trying to go to Line number option
On Goto line No Button click a command is binded in VIew Model inside that command i have to send the Line no
which i am getting from the text box.. But the third party editor is having a method gotoLine(int LineNo)...
which is a part of editor control so how do i get the object of the editor control in view model.. Or am i doing wrong by getting object of control in viewmodel...
Please advise
推荐答案
这篇关于在视图模型中访问Xaml控件对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!