DockPanel中套房 - DockContent知名度 [英] DockPanel Suite - DockContent visibility

查看:248
本文介绍了DockPanel中套房 - DockContent知名度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个表单包含一个DockPanel中与DockContent的一个实例,其中有DockState = DockState.DockBottomAutoHide和它作为一个记录器视图 - 像Visual Studio的错误列表面板。因此,当添加一个记录事件日志列表,DockPanel中 - 如果是不可见的 - 示于下方式:

A form contains a DockPanel with an instance of DockContent which has DockState=DockState.DockBottomAutoHide and it acts as a logger view - like Visual Studio's Error list panel. So, when a logging event is added to log list, DockPanel - if is not visible - is shown in next way:

{
  loggerList.AddLogEvent(event);
  loggerContentPanel.Show();
};



但如果loggerContentPanel是用户已经可见,Show方法使面板闪烁。
是什么办法让一个DockContent与DockState = DockState.DockBottomAutoHide的状态,如果是用户可见的? 。是否隐藏或Visible属性没有帮助太多

but if loggerContentPanel is already visible for user, Show method make the panel to "blink". Is any way to get the state of a DockContent with DockState = DockState.DockBottomAutoHide if is visible for user? IsHidden or Visible properties doesn't help too much.

推荐答案

编辑:好吧...我发现的是,当面板是隐藏的,属性IsActivated是假的,是真实的,当它的显示。

Alright... What I found is, when the panel is hidden, the property "IsActivated" is false, and is true when it's showing.

这篇关于DockPanel中套房 - DockContent知名度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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