我想FluentDesignForm
用RibbonControl
来自DevExpress的with来实现Image1所示的效果,但我实际得到的是Image2。问题是 FluentDesignForm 右上角的最小/最大/关闭按钮丢失,我无法通过拖动其标题栏来移动表单。能不能实现我想要的效果?这是Image1:
和Image2:
1 回答
0
DevExpress 没有FluentDesignForm
为此使用。它们的形式是RibbonForm
. 继承树如下所示:
DevExpress.XtraGrid.Demos.frmMain
> DevExpress.DXperience.Demos.RibbonMainForm
> DevExpress.XtraBars.Ribbon.RibbonForm
> DevExpress.XtraEditors.XtraForm
> DevExpress.XtraEditors.MouseWheelContainerForm
> DevExpress.XtraEditors.DForm
> System.Windows.Forms.Form
没有控制箱,RibbonForm
应该与RibbonControl
处理它一起使用。
在左侧,他们使用从以下衍生的自定义控件AccordionControl
:
DevExpress.DXperience.Demos.NavigationControl
> DevExpress.XtraBars.Navigation.AccordionControl
> DevExpress.XtraEditors.BaseStyleControl
> DevExpress.XtraEditors.BaseControl
> DevExpress.Utils.Controls.ControlBase
> System.Windows.Forms.Control
他们的诀窍是将他们的NavigationControl
(又名AccordionControl
)直接放在RibbonForm
并覆盖手风琴的GetUseDirectCompositionStyle()
返回方法true
(不检查 DirectX 和其他东西)。
于 2020-08-09T22:01:52.850 回答