坞站面板套件 [英] Dock Panel Suite

查看:83
本文介绍了坞站面板套件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Winfluo的Dock Panel套件向Visual Studio 2005工具箱添加了一个Dock Panel控件.

我创建了一个新表单,在其上拖动了一个停靠面板,但是它的作用就像普通面板一样,我找不到任何按钮或条带.
有人可以帮助我进行此控制吗?
我对代码没有太多的经验.

I''ve used Dock Panel suite from Winfluo to add a dock panel control to the Visual Studio 2005 tool box.

I created a new form ,dragged a dock panel to it , but it acts like a normal panel and I can''t find any buttons or strips.
Anyone can help me with this control?
I don''t have much experience with the code.

推荐答案

好吧,我认为对于Dock Panel,如果您需要在使用GUI时遇到困难.就是这样..

ok I think for the Dock Panel you would have to manually do it in code if you''re having difficulty with the GUI..Its something like this..

DockPanel myDock = new DockPanel();
myDock.LastChildFill=true; // This sets up the dock panel and fills up a child element on the remaining space

//but if u already have one set-up on the GUI, then you dont need to create a new dock panel, just call the instance and set the LastChildFill property to true

Border myBorder = new Border(); // Create a border for the Dock Panel
myBorder.[_Properties_]= [_Property Values_]; // Set properties you want like height, width..etc

//now this is the good part
//call instance member and set dock property

myDock.SetDock(myBorder,Dock.Fill);

// and I believe this is what you want to do..right?

// if it doesnt answer you question then re-phrase your question good and I would try to answer it again


该死...我环顾四周,找不到关于如何设置单个停靠区内容/窗格的宽度/高度的答案!如此明显的遗漏!
此外,如何设置MyDocContentPane.Visible = False(您可以隐藏启用的"DockPanel",但不能为单个窗格设置!)
God damn... I looked around couldn''t find an answer as to how to set width/height of individual dock content/panes! Such obvious omission!
Further, how to set MyDocContentPane.Visible = False (You can hide the enable "DockPanel", but can''t for individual panes!)


这篇关于坞站面板套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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