DevExpress XtraTreeList 将焦点行外观设置为仅显示背景颜色变化
有没有办法设置选定/聚焦的行外观,以便使该行仅带有边框(没有背景颜色变化,边框颜色为红色)?
Is there a way to set a selected/focused Row Appearance so that it makes the row only bordered (no background color changes, border color red) ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
选择控件后,单击控件右上角的智能标记按钮,然后选择“运行设计器”。
然后在左侧的外观选项卡下,您可以专门设置大部分的颜色控件中的组件
Click the smart tag button on the top right of the control when it is selected and choose Run Designer.
Then under the appearances tab on the left you can specifically set the color of most of the components in the control
对我来说 FocusedRow/SelectedRow 不起作用,但可以使用 FocusedCell 获得所需的结果
(在树列表设计器 -> 外观选项卡中,然后从外观列表中选择 FocusedCell)
编辑
默认情况下,FocusedRow 和 FocusedCell 外观均处于启用状态,因此,如果您有一个包含一个可见列的树列表,则不会(因为我没有)看到 FocusedRow 设置的效果。在这种情况下,您必须禁用 FocusedCell 外观(或者仅在 FocusedCell 配置必要的外观,而不是 FocusedRow)
PS 我正在使用 DevExpress 13.2.5 版本
For me FocusedRow/SelectedRow is not working, but it is possible to get the desired result with FocusedCell
(in treelist designer -> Appearance tab, and then select FocusedCell from Appearances list)
EDIT
Both FocusedRow and FocusedCell appearances are enabled by default, so if You have a treelist with one visible column, You will not (as I didn't) see the effect of settings for FocusedRow. In this case You have to disable FocusedCell appearance (or just configure necessary appearance at FocusedCell, not FocusedRow)
P.S. I am using DevExpress 13.2.5 version