在TooWindow内显示属性网格的信息 [英] Display information for Property Grid inside TooWindow

查看:83
本文介绍了在TooWindow内显示属性网格的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个工具窗口,需要在属性窗口中显示信息,我已经找到实现功能的代码,但是每次刷新属性网格的内容时,我的太"窗口都会失去焦点(也许正常)

I Have a tool window which needs to display information inside the property window, i have found the code to implement the functionnality but each time i refresh the content of the properties grid my Too window lost the focus (it perhaps normal).

在更新属性网格时是否有任何方法可以将焦点保持在我的工具窗口中?或者我是否必须实施特定的工具才能实现这种功能?

Is there is any way to keep the focus in my Tool Window while updating the property grid or do i have to implement a specific stuff to do such functionnality?

在下面,您将找到我在外接程序中使用的代码:

Just below you wil find the code i use in my Add-In:


    
private void RefreshPropertyGrid()
{
   PropGridObj GridProperties = e.Node.Tag as PropGridObj;
   if (null != edsFile)
   {
     if (_frame != null)
     {
       _frame.Show();
     }
          
     ArrayList listObjects = new System.Collections.ArrayList();
     listObjects.Add(GridProperties);

     SelectionContainer selContainer = new SelectionContaine(true, true);
     selContainer.SelectedObjects = listObjects;
     selContainer.SelectedObjects = listObjects;

     var track = GetService(typeof(STrackSelection)) as ITrackSelection;
    if (track != null)
    {
       int res = track.OnSelectChange(selContainer);
    }
}

推荐答案

这里的_frame是什么?您的相框或属性窗口?

What is _frame here?  Your frame or the property window?

Ryan


这篇关于在TooWindow内显示属性网格的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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