在视图模型中访问Xaml控件对象 [英] Acessing Xaml control object in view model

查看:80
本文介绍了在视图模型中访问Xaml控件对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的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

推荐答案

您问图书馆制造商吗?那将是我要做的第一件事.
Did you ask the library manufacturer? That would be the very first thing I''d do.


这篇关于在视图模型中访问Xaml控件对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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